[all-commits] [llvm/llvm-project] c8b74e: [lldb/DWARF] Add support for DW_AT_loclists_base&D...

Pavel Labath via All-commits all-commits at lists.llvm.org
Wed Dec 11 02:04:05 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c8b74ee264a943aad29fd0864c610ba5504f73a8
      https://github.com/llvm/llvm-project/commit/c8b74ee264a943aad29fd0864c610ba5504f73a8
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2019-12-11 (Wed, 11 Dec 2019)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
    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/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    A lldb/test/Shell/SymbolFile/DWARF/DW_AT_loclists_base.s

  Log Message:
  -----------
  [lldb/DWARF] Add support for DW_AT_loclists_base&DW_FORM_loclistx

Summary:
This adds support for DWARF5 location lists which are specified
indirectly, via an index into the debug_loclists offset table. This
includes parsing the DW_AT_loclists_base attribute which determines the
location of this offset table, and support for new form DW_FORM_loclistx
which is used in conjuction with DW_AT_location to refer to the location
lists in this way.

The code uses the llvm class to parse the offset information, and I've
also tried to structure it similarly to how the relevant llvm
functionality works.

Reviewers: JDevlieghere, aprantl, clayborg

Subscribers: lldb-commits

Tags: #lldb

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




More information about the All-commits mailing list