[llvm-dwarfdump] - Teach dwarfdump to dump gdb-index section.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 23 Sep 2016 09:09:26 +0000 (09:09 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 23 Sep 2016 09:09:26 +0000 (09:09 +0000)
commita77bcf5e42e3a31508f8a261935d14dc35353ed8
treeab5366ae87cab418480dc7939466194e277996fa
parent355103f6c0f869028f3739cea663dddaaa08da48
[llvm-dwarfdump] - Teach dwarfdump to dump gdb-index section.

gold linker's --gdb-index option currently is able to create the .gdb_index section that allows GDB to locate and read the .dwo files as it needs them,
this helps reduce the total size of the object files processed by the linker.

More info about that:
https://gcc.gnu.org/wiki/DebugFission
https://sourceware.org/gdb/onlinedocs/gdb/Index-Section-Format.html

Patch teaches dwarfdump tool to dump this section.

Differential revision: https://reviews.llvm.org/D21503

llvm-svn: 282235
llvm/include/llvm/DebugInfo/DIContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFGdbIndex.h [new file with mode: 0644]
llvm/lib/DebugInfo/DWARF/CMakeLists.txt
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp [new file with mode: 0644]
llvm/test/DebugInfo/Inputs/dwarfdump-gdbindex-v7.elf-x86-64 [new file with mode: 0644]
llvm/test/DebugInfo/dwarfdump-dump-gdbindex.test [new file with mode: 0644]
llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp