summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-04-23 01:13:27 +0000
committerJason Molenda <jmolenda@apple.com>2019-04-23 01:13:27 +0000
commit759805fd8a6c301b43a89a74700b750d19ba5f9a (patch)
tree766d3572a74d8e79bdf82f1ee0eb0eabb54c1aae /lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
parent9270a201b9d1ba735f5364d70318dc8bfea792b1 (diff)
downloadbcm5719-llvm-759805fd8a6c301b43a89a74700b750d19ba5f9a.tar.gz
bcm5719-llvm-759805fd8a6c301b43a89a74700b750d19ba5f9a.zip
One small tweak to LocateExecutableScriptingResources - I
was still stat'ing the possibly-dSYM FileSpec before I (more cheaply) checked the filepath for telltale dSYM components. <rdar://problem/50086007> llvm-svn: 358939
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
index c14cd1c2ab9..5602c0faf08 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
@@ -80,9 +80,9 @@ FileSpecList PlatformDarwin::LocateExecutableScriptingResources(
if (objfile) {
FileSpec symfile_spec(objfile->GetFileSpec());
if (symfile_spec &&
- FileSystem::Instance().Exists(symfile_spec) &&
strcasestr (symfile_spec.GetPath().c_str(),
- ".dSYM/Contents/Resources/DWARF") != nullptr) {
+ ".dSYM/Contents/Resources/DWARF") != nullptr &&
+ FileSystem::Instance().Exists(symfile_spec)) {
while (module_spec.GetFilename()) {
std::string module_basename(
module_spec.GetFilename().GetCString());
OpenPOWER on IntegriCloud