-
Notifications
You must be signed in to change notification settings - Fork 151
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
Use DW_LANG_Rust in DWARF #503
Conversation
This changes the GCC DWARF emitterto use DW_LANG_Rust or DW_LANG_Rust_old as appropriate.
Maybe the PR template content ( |
I edited the comment, no idea if that really works. |
bors r+ |
Build succeeded: |
Yes, editing the first comment works ! Thanks ! |
My understanding of DWARF is limited, so please bear with me. ;-) @tromey, I suppose that Or, are And no, I don't have a specific concern, I was just curious. (Hope you understood my concern.) |
Aha -- what I mean are things like #514. ;-) But I suppose that's fine -- we just have to pay attention to such conventions. |
I understand your concern, but there's nothing too much to be worried about. DWARF varies between compilers but also between different versions of compilers. Debuggers are naturally resilient to this to some degree; and GDB at least will add compiler-specific workarounds when needed (either by pattern matching or by examining the producer string). Mentioning the language of the CU is just a good practice and it lets GDB know that it should start up in "rust mode". |
This changes the GCC DWARF emitterto use DW_LANG_Rust or
DW_LANG_Rust_old as appropriate.