Author: gclayton
Date: Thu May 10 15:09:01 2018
New Revision: 332050

URL: http://llvm.org/viewvc/llvm-project?rev=332050&view=rev
Log:
Fix the code that gets the Xcode path. After path normalization this could was 
failing. 

This meant if the "debugserver" binary was removed from the LLDB.framework, 
lldb wouldn't be able to find debugserver.


Modified:
    lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp?rev=332050&r1=332049&r2=332050&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp Thu May 10 
15:09:01 2018
@@ -1301,7 +1301,7 @@ static const char *const sdk_strings[] =
 
 static FileSpec CheckPathForXcode(const FileSpec &fspec) {
   if (fspec.Exists()) {
-    const char substr[] = ".app/Contents/";
+    const char substr[] = ".app/Contents";
 
     std::string path_to_shlib = fspec.GetPath();
     size_t pos = path_to_shlib.rfind(substr);


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to