-
Notifications
You must be signed in to change notification settings - Fork 108
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
Support for DW_OP_addrx #242
Conversation
For For
To implement this fully, we'll need support for parsing the
As part of implementing this, we should also extend our dwarfdump example to print out these values too. It would be useful to find a compiler that generates |
Thanks a lot for the detailed answer @philipc. I'll keep working on this. |
Hi, I'm having trouble finding a compiler that produces a debug_addr section that complies to the Address Table as specified in section 7.27. g++ (version 6.3.1) and clang++ (version 3.9.1) will both produce a I tried looking for more info on that, but couldn't find anything. Can anyone confirm that clang nor gcc produces the correct format for the If anyone is curious, here's the content of the .debug_addr section for a sample program that I compiled: g++ clang++ |
I didn't check gcc, but llvm doesn't write a header (source). So we probably need to handle |
GCC also does not generate a header. |
Closing in favor of #358. Also FYI, parsing of the |
Hi,
I tried adding support for DW_OP_addrx. I am looking for feedback at this point since I'm not 100% everything I did is correct. Also, I am aware we would be missing a test for
resume_with_addr_base
.I am not sure my interpretation of what DW_OP_addrx does is correct. I interpreted it as doing the same thing as DW_OP_addr, but in the .debug_addr section. In the case the I am correct, the implementation of DW_OP_constx would mostly reuse the same code I think?