From: Jason Molenda Date: Tue, 23 Apr 2019 01:13:27 +0000 (+0000) Subject: One small tweak to LocateExecutableScriptingResources - I X-Git-Tag: llvmorg-10-init~7279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=759805fd8a6c301b43a89a74700b750d19ba5f9a;p=platform%2Fupstream%2Fllvm.git 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. llvm-svn: 358939 --- diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp index c14cd1c..5602c0f 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());