Add the option to lookup an address in the debug information and print
out the file, function, block and line table details, as well as the relevant
DIEs.
This mirrors the functionality from dwarfdump classic.
Paths
| Differential D38409
[dwarfdump] Add -lookup option ClosedPublic Authored by JDevlieghere on Sep 29 2017, 9:55 AM.
Details Summary Add the option to lookup an address in the debug information and print This mirrors the functionality from dwarfdump classic.
Diff Detail
Event Timeline
JDevlieghere added inline comments.
Comment Actions Thanks! (Minor nitpick + future work inside :-)
This revision is now accepted and ready to land.Sep 29 2017, 11:46 AM
Comment Actions Instead of storing a std::string containing a copy of filename and dir, we might be able to just use a StringRef and share the storage for the payload. Closed by commit rL314817: [dwarfdump] Add -lookup option (authored by JDevlieghere). · Explain WhyOct 3 2017, 10:12 AM This revision was automatically updated to reflect the committed changes. JDevlieghere marked an inline comment as done.
Revision Contents
Diff 117545 llvm/trunk/include/llvm/DebugInfo/DIContext.h
llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/trunk/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/trunk/test/tools/llvm-dwarfdump/X86/lookup.s
llvm/trunk/test/tools/llvm-dwarfdump/cmdline.test
llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
|
This should be explicit (implicit bool conversion operators are problematic - can easily convert to int, etc)