[all-commits] [llvm/llvm-project] 00539d: [lldb/DWARF] Support the debug_str_offsets section...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Feb 18 02:02:45 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 00539d8b6425529240d970082c23e6ee1263669b
      https://github.com/llvm/llvm-project/commit/00539d8b6425529240d970082c23e6ee1263669b
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-02-18 (Tue, 18 Feb 2020)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
    M lldb/test/Shell/SymbolFile/DWARF/dwp.s

  Log Message:
  -----------
  [lldb/DWARF] Support the debug_str_offsets section in dwp files

Summary:
In dwp files a constant (from the debug_cu_index section) needs to be
added to each reference into the debug_str_offsets section.

I've tried to implement this to roughly match the llvm flow: I've
changed the DWARFormValue to stop resolving the indirect string
references directly -- instead, it calls into DWARFUnit, which resolves
this for it (similar to how it already resolves indirect range and
location list references). I've also done a small refactor of the string
offset base computation code in DWARFUnit in order to make it easier to
access the debug_cu_index base offset.

Reviewers: JDevlieghere, aprantl, clayborg

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D74723




More information about the All-commits mailing list