[all-commits] [llvm/llvm-project] e65282: [lldb/DWARF] Don't automatically search dwo unit a...

Pavel Labath via All-commits all-commits at lists.llvm.org
Fri Jan 10 04:27:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e65282deca8455d1cc6d83b7016af9aa374f9f89
      https://github.com/llvm/llvm-project/commit/e65282deca8455d1cc6d83b7016af9aa374f9f89
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.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

  Log Message:
  -----------
  [lldb/DWARF] Don't automatically search dwo unit attributes

This patch removes the code (deep inside DWARFDebugInfoEntry) which
automagically returned the attributes of the dwo unit DIE when asking
for the attributes of the skeleton unit.  This is fairly hacky, and not
consistent with how llvm DWARF parser operates.

Instead, I change the code the explicitly request (via
GetNonSkeletonUnit) the right unit to search (there were just two places
that needed this). If it turns out we need this more often, we can
create a utility function (external to DWARFUnit) for doing this.




More information about the All-commits mailing list