[all-commits] [llvm/llvm-project] 154cea: [lldb] Fix type lookup in DWARF .o files via debug...

Pablo Busse via All-commits all-commits at lists.llvm.org
Sun Mar 31 09:17:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 154cea46732f4014bb409f1bcac9b39ac56df193
      https://github.com/llvm/llvm-project/commit/154cea46732f4014bb409f1bcac9b39ac56df193
  Author: Pablo Busse <Pablo.Busse at microsoft.com>
  Date:   2024-03-31 (Sun, 31 Mar 2024)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
    M lldb/test/API/functionalities/type_find_first/Makefile
    M lldb/test/API/functionalities/type_find_first/TestFindFirstType.py
    M lldb/test/API/functionalities/type_find_first/main.cpp
    A lldb/test/API/functionalities/type_find_first/other.cpp

  Log Message:
  -----------
  [lldb] Fix type lookup in DWARF .o files via debug map (#87177)

An inverted condition causes `SymbolFileDWARFDebugMap::FindTypes` to
bail out after inspecting the first .o file in each module.

The same kind of bug is found in
`SymbolFileDWARFDebugMap::ParseDeclsForContext`.

Correct both early exit conditions and add a regression test for lookup
of up a type defined in a secondary compilation unit.

Fixes #87176



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list