[all-commits] [llvm/llvm-project] 032de3: [lldb][DebugNamesDWARF] Also use mangled name when...

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Thu Jul 6 14:16:10 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 032de3ee0d3575557f999925fb2d78b9423f3f50
  Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp

  Log Message:
  [lldb][DebugNamesDWARF] Also use mangled name when matching regex

When LLDB queries the debug names index with a regex, we should use the
`Mangled` class wrapper, which attempts to match regex first against the mangled
name and then against the demangled name. It is important to do so, otherwise
queries like `frame var --regex A::` would never work. This is what is done for
the Apple index as well.

This fixes test/API/lang/cpp/class_static/main.cpp when compiled with DWARF 5.

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

More information about the All-commits mailing list