[Lldb-commits] [lldb] r139342 - /lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
Johnny Chen
johnny.chen at apple.com
Thu Sep 8 17:20:12 PDT 2011
Author: johnny
Date: Thu Sep 8 19:20:12 2011
New Revision: 139342
URL: http://llvm.org/viewvc/llvm-project?rev=139342&view=rev
Log:
Patch from Pilipe to allow "target create" on the remote-macosx platform!
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=139342&r1=139341&r2=139342&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp Thu Sep 8 19:20:12 2011
@@ -87,7 +87,17 @@
exe_module_sp);
}
else
- error.SetErrorString ("the platform is not currently connected");
+ {
+ // We may connect to a process and use the provided executable (Don't use local $PATH).
+
+ // Resolve any executable within a bundle on MacOSX
+ Host::ResolveExecutableInBundle (resolved_exe_file);
+
+ if (resolved_exe_file.Exists())
+ error.Clear();
+ else
+ error.SetErrorStringWithFormat("the platform is not currently connected, and '%s' doesn't exist in the system root.");
+ }
}
More information about the lldb-commits
mailing list