[PATCH] D78500: [DWARF5]:Added support for .debug_macro.dwo section in llvm-dwarfdump
Sourabh Singh Tomar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 04:17:33 PDT 2020
SouraVX added a comment.
> As I've said, take a look at dumpDWARFv5StringOffsetsSection().
@ikudrin, Sorry for churn :). But I'm still not getting as to how to map the indices(strx) to appropriate CU, without having to search in list(of CU's) using `DW_AT_macros`.
Sort of let's say we got `0` as an index(In every CU index will start from `0`) from `_strx` form how do we map this to appropriate CU and retrieve the macro or string correctly.
`dumpDWARFv5StringOffsetsSection()` this function just collects the contributions from list of CU's and dump/prints it.
for (auto &Contribution : Contributions) {
Offset = Contribution->Base;
// print dump using this as StrOffset
Could you please briefly elaborate the approach you have in mind.
Thanks a lot !
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78500/new/
https://reviews.llvm.org/D78500
More information about the llvm-commits
mailing list