[llvm] [llvm][dwarf][rfc][donotcommit] Enable print of ranges addresses from .debug_info.dwo (PR #65516)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 14:41:11 PDT 2023


ayermolo wrote:

> If I have to specify the dwo and the .o simultaneously, why would I do that instead of just running dwarfdump on the .o (which will follow links to the .dwo)?
> 
> This is also missing a test.

Not sure what you mean. llvm-dwarfdump won't follow the DW_AT_comp_dr+DW_AT_dwo_name to the .dwo file if you use it on the the main elf binary. The idea behind the patch is being able to output .dwo/.dwp directly with all the references to .debug_ranges (DWARF4) .debug_addr resolved. 

Forgot to copy a comment from original phab review. I was planning on adding tests once it's not clear this is not dead on arrival. :)

https://github.com/llvm/llvm-project/pull/65516


More information about the llvm-commits mailing list