[all-commits] [llvm/llvm-project] fc440f: Filter non-external static members from SBType::Ge...

Sigurður Ásgeirsson via All-commits all-commits at lists.llvm.org
Mon May 9 03:34:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc440f27cd50e48e1f9ebe6e56febe2823e59de4
      https://github.com/llvm/llvm-project/commit/fc440f27cd50e48e1f9ebe6e56febe2823e59de4
  Author: Sigurur sgeirsson <siggi at alpheus.dev>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
    A lldb/test/Shell/SymbolFile/DWARF/x86/debug_static-member-anonymous-namespace.s

  Log Message:
  -----------
  Filter non-external static members from SBType::GetFieldAtIndex.

See [[ https://github.com/llvm/llvm-project/issues/55040 | issue 55040 ]] where static members of classes declared in the anonymous namespace are incorrectly returned as member fields from lldb::SBType::GetFieldAtIndex(). It appears that attrs.member_byte_offset contains a sentinel value for members that don't have a DW_AT_data_member_location.

Reviewed By: labath

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




More information about the All-commits mailing list