[PATCH] D78736: [DWARF5]: Added support for dumping strx forms in llvm-dwarfdump
Sourabh Singh Tomar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 11:21:49 PDT 2020
SouraVX created this revision.
SouraVX added reviewers: ikudrin, dblaikie, aprantl, jini.susan.george.
SouraVX added a project: debug-info.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
This patch adds support for dumping `DW_MACRO_define_strx`, `DW_MACRO_undef_strx` in llvm-dwarfdump. These forms are currently supported only in `debug_macro` section.
- Added test containing multiple CUs(2 CU) contributing to macro section via `DW_MACRO_define_strx` form. llvm-dwarfdump is able to parse/dump contents correctly.
This patch is separated from D78500 <https://reviews.llvm.org/D78500> based on feedback from @dblaikie , @ikudrin, Thanks for this!
Support for these forms in a `debug_macro.dwo` section will be done in a separate patch.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78736
Files:
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
llvm/test/DebugInfo/X86/debug-macro-multi-cu-strx.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78736.259638.patch
Type: text/x-patch
Size: 13113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200423/36926230/attachment.bin>
More information about the llvm-commits
mailing list