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 117169 include/llvm/DebugInfo/DIContext.h
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/DebugInfo/DWARF/DWARFUnit.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFUnit.cpp
test/tools/llvm-dwarfdump/X86/lookup.s
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
|
return *this != DILineInfo(); ?