diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-14 01:09:52 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-14 01:09:52 +0000 |
| commit | a6002fd9208b0bb818185837c2bb6b004319bf77 (patch) | |
| tree | 4fb172e53a9877a33573a0191143d9f6e2c042d4 /llvm/tools/llvm-dwarfdump | |
| parent | 91991efcdc439967ca30d81d82fe21232bd929a9 (diff) | |
| download | bcm5719-llvm-a6002fd9208b0bb818185837c2bb6b004319bf77.tar.gz bcm5719-llvm-a6002fd9208b0bb818185837c2bb6b004319bf77.zip | |
DWARF: Port support for parsing .debug_aranges section from LLDB and wire it up to llvm-dwarfdump.
This is only one half of it, the part that caches address ranges from the DIEs when .debug_aranges is
not available will be ported soon.
llvm-svn: 139680
Diffstat (limited to 'llvm/tools/llvm-dwarfdump')
| -rw-r--r-- | llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index cf8b4d08067..076dcd10fb0 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -52,6 +52,7 @@ static void DumpInput(const StringRef &Filename) { StringRef DebugInfoSection; StringRef DebugAbbrevSection; StringRef DebugLineSection; + StringRef DebugArangesSection; error_code ec; for (ObjectFile::section_iterator i = Obj->begin_sections(), @@ -67,11 +68,14 @@ static void DumpInput(const StringRef &Filename) { DebugAbbrevSection = data; else if (name.endswith("debug_line")) DebugLineSection = data; + else if (name.endswith("debug_aranges")) + DebugArangesSection = data; } OwningPtr<DIContext> dictx(DIContext::getDWARFContext(/*FIXME*/true, DebugInfoSection, - DebugAbbrevSection)); + DebugAbbrevSection, + DebugArangesSection)); dictx->dump(outs()); } |

