[PATCH] D21503: [llvm-dwarfdump] - Teach dwarfdump to dump gdb-index section.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 19 04:10:57 PDT 2016


grimar created this revision.
grimar added reviewers: rafael, ruiu, dblaikie, davide.
grimar added subscribers: llvm-commits, grimar.

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.

http://reviews.llvm.org/D21503

Files:
  include/llvm/DebugInfo/DIContext.h
  include/llvm/DebugInfo/DWARF/DWARFContext.h
  include/llvm/DebugInfo/DWARF/DWARFGdbIndex.h
  lib/DebugInfo/DWARF/CMakeLists.txt
  lib/DebugInfo/DWARF/DWARFContext.cpp
  lib/DebugInfo/DWARF/DWARFGdbIndex.cpp
  test/DebugInfo/Inputs/dwarfdump-gdbindex-v7.elf-x86-64
  test/DebugInfo/dwarfdump-dump-gdbindex.test
  tools/llvm-dwarfdump/llvm-dwarfdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21503.61197.patch
Type: text/x-patch
Size: 16266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160619/11a43c4c/attachment.bin>


More information about the llvm-commits mailing list