Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM 16 supports Crystal's DWARF5 language code #13174

Open
HertzDevil opened this issue Mar 9, 2023 · 2 comments
Open

LLVM 16 supports Crystal's DWARF5 language code #13174

HertzDevil opened this issue Mar 9, 2023 · 2 comments

Comments

@HertzDevil
Copy link
Contributor

LLVM 16.0.0-rc4 is about to be released. Getting Crystal to work on LLVM 16 is a walk in the park compared to LLVM 15, as it requires just minor changes to src/llvm/ext/llvm_ext.cc for C++17 compatibility.

However, this PR caught my attention: llvm/llvm-project@b70bbaa. It means that, for the first time, debug information produced by Crystal no longer needs to share the same language code as C++. It doesn't seem anything is in place for LLDB 16 though.

We should spend some time to investigate the impact this has on our native debugging capabilities. Perhaps this will finally enable us to contribute Crystal-specific patches to LLDB itself?

@crysbot
Copy link

crysbot commented Jun 2, 2024

This issue has been mentioned on Crystal Forum. There might be relevant details there:

https://forum.crystal-lang.org/t/how-to-debug-my-crystal-app/3393/8

@HertzDevil
Copy link
Contributor Author

So the language code is not part of DWARF 5; it was reserved after the release of that version, and is only effective in the upcoming DWARF 6 (page 64, 240)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants