[all-commits] [llvm/llvm-project] 4618ef: Allow the dumping of .dwo files contents to show u...

Greg Clayton via All-commits all-commits at lists.llvm.org
Fri Jan 12 13:32:07 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4618ef8cf5d8fa406c34ce2770c304cac95310b6
      https://github.com/llvm/llvm-project/commit/4618ef8cf5d8fa406c34ce2770c304cac95310b6
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2024-01-12 (Fri, 12 Jan 2024)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DIContext.h
    M llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
    M llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
    A llvm/test/tools/llvm-dwarfdump/Inputs/dump_dwo.dwo.yaml
    A llvm/test/tools/llvm-dwarfdump/Inputs/dump_dwo.o.yaml
    A llvm/test/tools/llvm-dwarfdump/dump_dwo.test
    M llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

  Log Message:
  -----------
  Allow the dumping of .dwo files contents to show up when dumping an executable with split DWARF. (#66726)

Allow the dumping of .dwo files contents to show up when dumping an
executable with split DWARF.

Currently if you run llvm-dwarfdump on a binary that has skeleton
compile units, you only see the skeleton compile units. Since the main
binary has the linked addresses it would be nice to be able to dump
DWARF from the .dwo files and how the resolved addresses instead of
showing the address index and "<unresolved>" in the output. This patch
adds an option that can be specified to dump the non skeleton DIEs named
--dwo.

Added the ability to use the following options with split dwarf as well:
  --name <name>
  --lookup <addr>
  --debug-info <die-offset>




More information about the All-commits mailing list