Skip to content

Commit

Permalink
Symbols::LocateExecutableSymbolFile() shouldn't try to look for files…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
enlight committed Oct 13, 2015
1 parent 85030aa commit 3014991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/source/Host/common/Symbols.cpp
Expand Up @@ -238,8 +238,10 @@ Symbols::LocateExecutableSymbolFile (const ModuleSpec &module_spec)
// Add current working directory.
debug_file_search_paths.AppendIfUnique (FileSpec(".", true));

#ifndef LLVM_ON_WIN32
// Add /usr/lib/debug directory.
debug_file_search_paths.AppendIfUnique (FileSpec("/usr/lib/debug", true));
#endif // LLVM_ON_WIN32

std::string uuid_str;
const UUID &module_uuid = module_spec.GetUUID();
Expand Down

0 comments on commit 3014991

Please sign in to comment.