[all-commits] [llvm/llvm-project] 5a45d3: [lldb] Add more ways to find the .dwp file. (#81067)

Greg Clayton via All-commits all-commits at lists.llvm.org
Tue Feb 20 18:17:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a45d32b5b42dc4ed4852b0045391a1c2be41b48
      https://github.com/llvm/llvm-project/commit/5a45d32b5b42dc4ed4852b0045391a1c2be41b48
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2024-02-20 (Tue, 20 Feb 2024)

  Changed paths:
    M lldb/include/lldb/Utility/FileSpecList.h
    M lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    M lldb/test/Shell/SymbolFile/DWARF/x86/dwp-separate-debug-file.cpp

  Log Message:
  -----------
  [lldb] Add more ways to find the .dwp file. (#81067)

When using split DWARF we can run into many different ways to store
debug info:
- lldb loads `<exe>` which contains skeleton DWARF and needs to find
`<exe>.dwp`
- lldb loads `<exe>` which is stripped but has .gnu_debuglink pointing
to `<exe>.debug` with skeleton DWARF and needs to find `<exe>.dwp`
- lldb loads `<exe>` which is stripped but has .gnu_debuglink pointing
to `<exe>.debug` with skeleton DWARF and needs to find `<exe>.debug.dwp`
- lldb loads `<exe>.debug` and needs to find `<exe>.dwp`

Previously we only handled the first two cases. This patch adds support
for the latter two.



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