[Lldb-commits] [lldb] LLDB Debuginfod tests and a fix or two (PR #90622)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu May 9 05:14:53 PDT 2024
================
@@ -87,8 +105,15 @@ SymbolVendorELF::CreateInstance(const lldb::ModuleSP &module_sp,
FileSpecList search_paths = Target::GetDefaultDebugFileSearchPaths();
FileSpec dsym_fspec =
PluginManager::LocateExecutableSymbolFile(module_spec, search_paths);
- if (!dsym_fspec)
- return nullptr;
+ if (!dsym_fspec || IsDwpSymbolFile(module_sp, dsym_fspec)) {
+ // If we have a stripped binary or if we got a DWP file, we should prefer
+ // symbols in the executable acquired through a plugin.
+ ModuleSpec unstripped_spec =
+ PluginManager::LocateExecutableObjectFile(module_spec);
+ if (!unstripped_spec)
+ return nullptr;
+ dsym_fspec = unstripped_spec.GetFileSpec();
+ }
----------------
DavidSpickett wrote:
https://github.com/llvm/llvm-project/pull/91585 fixes the underlying issue, if/when that's proven to work, I'll put this PR back in.
https://github.com/llvm/llvm-project/pull/90622
More information about the lldb-commits
mailing list