OSDN Git Service

[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)
commitb64f7d88434cff4a6cbff2f569519458c56d1eba
tree8a73237828281b3b21a7ababf0e974c08c2aadfe
parent5d11fd54b0cad35c0f22ddda0fc71ca924317ec0
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282235 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DIContext.h
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/DebugInfo/DWARF/DWARFGdbIndex.h [new file with mode: 0644]
lib/DebugInfo/DWARF/CMakeLists.txt
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFGdbIndex.cpp [new file with mode: 0644]
test/DebugInfo/Inputs/dwarfdump-gdbindex-v7.elf-x86-64 [new file with mode: 0644]
test/DebugInfo/dwarfdump-dump-gdbindex.test [new file with mode: 0644]
tools/llvm-dwarfdump/llvm-dwarfdump.cpp