diff options
author | Jason Molenda <jmolenda@apple.com> | 2019-04-23 01:13:27 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2019-04-23 01:13:27 +0000 |
commit | 759805fd8a6c301b43a89a74700b750d19ba5f9a (patch) | |
tree | 766d3572a74d8e79bdf82f1ee0eb0eabb54c1aae /lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | |
parent | 9270a201b9d1ba735f5364d70318dc8bfea792b1 (diff) | |
download | bcm5719-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.cpp | 4 |
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()); |