Symbols::LocateExecutableSymbolFile() shouldn't try to look for files in /usr/lib/debug on Windows

Summary:
/usr/lib/debug doesn't exist on Windows so there's no point even
attempting to look for symbol files in there.

Reviewers: zturner, clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13636

llvm-svn: 250175
This commit is contained in:
Vadim Macagon 2015-10-13 16:30:28 +00:00
parent 85030aa1bd
commit 3014991fcf
1 changed files with 2 additions and 0 deletions

View File

@ -238,8 +238,10 @@ Symbols::LocateExecutableSymbolFile (const ModuleSpec &module_spec)
// Add current working directory. // Add current working directory.
debug_file_search_paths.AppendIfUnique (FileSpec(".", true)); debug_file_search_paths.AppendIfUnique (FileSpec(".", true));
#ifndef LLVM_ON_WIN32
// Add /usr/lib/debug directory. // Add /usr/lib/debug directory.
debug_file_search_paths.AppendIfUnique (FileSpec("/usr/lib/debug", true)); debug_file_search_paths.AppendIfUnique (FileSpec("/usr/lib/debug", true));
#endif // LLVM_ON_WIN32
std::string uuid_str; std::string uuid_str;
const UUID &module_uuid = module_spec.GetUUID(); const UUID &module_uuid = module_spec.GetUUID();