Added "macro" option to "-debug-dump" flag, which trigger parsing & dumping of the ".debug_macinfo" section.
Note: Once DWARF 5.0 is published this same option can be used to parse & dump ".debug_macro" section as well.
Paths
| Differential D14294
Add macro support to llvm-dwarfdump tool ClosedPublic Authored by aaboud on Nov 3 2015, 10:25 AM.
Details Summary Added "macro" option to "-debug-dump" flag, which trigger parsing & dumping of the ".debug_macinfo" section. Note: Once DWARF 5.0 is published this same option can be used to parse & dump ".debug_macro" section as well.
Diff Detail
Event Timelineaaboud updated this object. samsonov added inline comments.
Comment Actions Hi Alexey, Please, see my answers below.
aaboud marked 2 inline comments as done. Comment ActionsApplied Alexey comments. Please, let me know if there is anything else I should change.
aaboud marked 7 inline comments as done. Comment ActionsApplied more changes according to Alexey comments. Please, let me know if there is anything else I should change. Comment Actions Looks mostly good. A few remaining comments below.
aaboud edited edge metadata. aaboud marked 4 inline comments as done. Comment ActionsThanks Alexey for catching these leftovers that I forgot to modify to fit the recent changes. I hope that this patch is good for commit. Thanks, This revision is now accepted and ready to land.Nov 11 2015, 6:50 AM Closed by commit rL252866: dwarfdump: Added macro support to llvm-dwarfdump tool. (authored by aaboud). · Explain WhyNov 12 2015, 1:41 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 39896 include/llvm/DebugInfo/DIContext.h
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
include/llvm/Support/Dwarf.h
lib/DebugInfo/DWARF/CMakeLists.txt
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
lib/DebugInfo/DWARF/SyntaxHighlighting.h
lib/DebugInfo/DWARF/SyntaxHighlighting.cpp
lib/Support/Dwarf.cpp
test/DebugInfo/Inputs/dwarfdump-macro.cc
test/DebugInfo/debugmacinfo.testtest\DebugInfo\Inputs\dwarfdump-macro.o
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
|
Remove DWARFContext::