[PATCH] D70227: DWARF location lists: Add section index dumping

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 02:58:42 PST 2019


labath created this revision.
labath added reviewers: dblaikie, probinson, JDevlieghere, SouraVX.
Herald added subscribers: arphaman, atanasyan, jrtc27, hiraditya, sdardis.
Herald added a project: LLVM.
labath added a parent revision: D69847: DWARFDebugLoc(v4): Add an incremental parsing function.

As discussed in D70081 <https://reviews.llvm.org/D70081>, this adds the ability to dump section
names/indices to the location list dumper. It does this by moving the
range specific logic from DWARFDie.cpp:dumpRanges into the
DWARFAddressRange class.

The trickiest part of this patch is the backflip in the meanings of the
two dump flags for the location list sections.

The dumping of "raw" location list data is now controlled by
"DisplayRawContents" flag. This frees up the "Verbose" flag to be used
to control whether we print the section index. Additionally, the
DisplayRawContents flag is set for section-based dumps whenever the
--verbose option is passed, but this is not done for the "inline" dumps.

Also note that the index dumping currently does not work for the DWARF
v5 location lists, as the parser does not fill out the appropriate
fields. This will be done in a separate patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70227

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h
  llvm/lib/DebugInfo/DWARF/DWARFAddressRange.cpp
  llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
  llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
  llvm/test/CodeGen/X86/debug-loclists.ll
  llvm/test/DebugInfo/ARM/PR26163.ll
  llvm/test/DebugInfo/Mips/dsr-fixed-objects.ll
  llvm/test/DebugInfo/X86/DW_AT_location-reference.ll
  llvm/test/DebugInfo/X86/dbg-value-frame-index.ll
  llvm/test/DebugInfo/X86/dbg-value-regmask-clobber.ll
  llvm/test/DebugInfo/X86/debug-loc-frame.ll
  llvm/test/DebugInfo/X86/debug-loc-offset.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70227.229256.patch
Type: text/x-patch
Size: 15421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191114/d56e65c1/attachment.bin>


More information about the llvm-commits mailing list