diff options
Diffstat (limited to 'lldb/source/Host/common/Symbols.cpp')
-rw-r--r-- | lldb/source/Host/common/Symbols.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/Host/common/Symbols.cpp b/lldb/source/Host/common/Symbols.cpp index 136c828c639..3ea112abb70 100644 --- a/lldb/source/Host/common/Symbols.cpp +++ b/lldb/source/Host/common/Symbols.cpp @@ -7,10 +7,10 @@ //===----------------------------------------------------------------------===// #include "lldb/Host/Symbols.h" -#include "lldb/Core/ModuleList.h" #include "lldb/Core/ModuleSpec.h" #include "lldb/Host/FileSystem.h" #include "lldb/Symbol/ObjectFile.h" +#include "lldb/Target/Target.h" #include "lldb/Utility/ArchSpec.h" #include "lldb/Utility/DataBuffer.h" #include "lldb/Utility/DataExtractor.h" @@ -248,9 +248,7 @@ ModuleSpec Symbols::LocateExecutableObjectFile(const ModuleSpec &module_spec) { // Keep "symbols.enable-external-lookup" description in sync with this function. -FileSpec -Symbols::LocateExecutableSymbolFile(const ModuleSpec &module_spec, - const FileSpecList &default_search_paths) { +FileSpec Symbols::LocateExecutableSymbolFile(const ModuleSpec &module_spec) { FileSpec symbol_file_spec = module_spec.GetSymbolFileSpec(); if (symbol_file_spec.IsAbsolute() && FileSystem::Instance().Exists(symbol_file_spec)) @@ -258,7 +256,8 @@ Symbols::LocateExecutableSymbolFile(const ModuleSpec &module_spec, const char *symbol_filename = symbol_file_spec.GetFilename().AsCString(); if (symbol_filename && symbol_filename[0]) { - FileSpecList debug_file_search_paths = default_search_paths; + FileSpecList debug_file_search_paths( + Target::GetDefaultDebugFileSearchPaths()); // Add module directory. FileSpec module_file_spec = module_spec.GetFileSpec(); |