[PATCH] D159374: [llvm][dwarf][rfc][donotcommit] Enable print of ranges addresses from .debug_info.dwo

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 14:24:20 PDT 2023


clayborg added a comment.

In D159374#4635457 <https://reviews.llvm.org/D159374#4635457>, @ayermolo wrote:

> In D159374#4635446 <https://reviews.llvm.org/D159374#4635446>, @dblaikie wrote:
>
>> Might be easier to go the other way, and when dumping the main binary, also dump associated dwo/dwp files? (Perhaps under a flag, or by default, not sure)
>
> From usability perspective I think this is an easier way. 
> --debug-info=<address> just works when dumping out .dwo or DWP file. 
> When dumping debug_info from random .dwo/.o files no need to copy paste the DWO ID hash to output sepcific ones.
> It just works.

Yeah, that is something I need to add to my patch:

  --dwo-id <id> --debug-info-dwo <offset>

You would need to specify the DWO ID and a "--debug-info-dwo" to dump a DIE if the main executable is specified... Both workflows seem valid IMHO


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159374/new/

https://reviews.llvm.org/D159374



More information about the llvm-commits mailing list