summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/LocateSymbolFile.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-03-06 18:20:23 +0000
committerZachary Turner <zturner@google.com>2019-03-06 18:20:23 +0000
commita89ce43cec5ee6aa621173a5cba716d7d734ddd1 (patch)
treeb5b24a255ce2d7efdd2cb9a9621f38f4be01f9f4 /lldb/source/Symbol/LocateSymbolFile.cpp
parentc01140ef1ff66869d4ea9465c3cd198d82d30cab (diff)
downloadbcm5719-llvm-a89ce43cec5ee6aa621173a5cba716d7d734ddd1.tar.gz
bcm5719-llvm-a89ce43cec5ee6aa621173a5cba716d7d734ddd1.zip
Resubmit "Don't include UnixSignals.h from Host."
This was reverted because it breaks the GreenDragon bot, but the reason for the breakage is lost, so I'm resubmitting this now so we can find out what the problem is. llvm-svn: 355528
Diffstat (limited to 'lldb/source/Symbol/LocateSymbolFile.cpp')
-rw-r--r--lldb/source/Symbol/LocateSymbolFile.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Symbol/LocateSymbolFile.cpp b/lldb/source/Symbol/LocateSymbolFile.cpp
index e45eb2e2c36..2a4d49cfbaf 100644
--- a/lldb/source/Symbol/LocateSymbolFile.cpp
+++ b/lldb/source/Symbol/LocateSymbolFile.cpp
@@ -8,10 +8,10 @@
#include "lldb/Symbol/LocateSymbolFile.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"
@@ -252,7 +252,9 @@ 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) {
+FileSpec
+Symbols::LocateExecutableSymbolFile(const ModuleSpec &module_spec,
+ const FileSpecList &default_search_paths) {
FileSpec symbol_file_spec = module_spec.GetSymbolFileSpec();
if (symbol_file_spec.IsAbsolute() &&
FileSystem::Instance().Exists(symbol_file_spec))
@@ -260,8 +262,7 @@ FileSpec 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(
- Target::GetDefaultDebugFileSearchPaths());
+ FileSpecList debug_file_search_paths = default_search_paths;
// Add module directory.
FileSpec module_file_spec = module_spec.GetFileSpec();
OpenPOWER on IntegriCloud