[Lldb-commits] [lldb] r158355 - in /lldb/branches/apple/python-GIL: ./ tools/debugserver/source/MacOSX/MachProcess.cpp
Filipe Cabecinhas
me at filcab.net
Tue Jun 12 01:17:41 PDT 2012
Author: filcab
Date: Tue Jun 12 03:17:41 2012
New Revision: 158355
URL: http://llvm.org/viewvc/llvm-project?rev=158355&view=rev
Log:
Merge changes from ToT trunk.
Modified:
lldb/branches/apple/python-GIL/ (props changed)
lldb/branches/apple/python-GIL/tools/debugserver/source/MacOSX/MachProcess.cpp
Propchange: lldb/branches/apple/python-GIL/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Tue Jun 12 03:17:41 2012
@@ -1 +1 @@
-/lldb/trunk:156467-158246
+/lldb/trunk:156467-158327
Modified: lldb/branches/apple/python-GIL/tools/debugserver/source/MacOSX/MachProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/apple/python-GIL/tools/debugserver/source/MacOSX/MachProcess.cpp?rev=158355&r1=158354&r2=158355&view=diff
==============================================================================
--- lldb/branches/apple/python-GIL/tools/debugserver/source/MacOSX/MachProcess.cpp (original)
+++ lldb/branches/apple/python-GIL/tools/debugserver/source/MacOSX/MachProcess.cpp Tue Jun 12 03:17:41 2012
@@ -1533,6 +1533,24 @@
m_pid = MachProcess::ForkChildForPTraceDebugging (path, argv, envp, this, launch_err);
break;
+#ifdef WITH_SPRINGBOARD
+
+ case eLaunchFlavorSpringBoard:
+ {
+ const char *app_ext = strstr(path, ".app");
+ if (app_ext != NULL)
+ {
+ std::string app_bundle_path(path, app_ext + strlen(".app"));
+ if (SBLaunchForDebug (app_bundle_path.c_str(), argv, envp, no_stdio, launch_err) != 0)
+ return m_pid; // A successful SBLaunchForDebug() returns and assigns a non-zero m_pid.
+ }
+ }
+ // In case the executable name has a ".app" fragment which confuses our debugserver,
+ // let's do an intentional fallthrough here...
+ launch_flavor = eLaunchFlavorPosixSpawn;
+
+#endif
+
case eLaunchFlavorPosixSpawn:
m_pid = MachProcess::PosixSpawnChildForPTraceDebugging (path,
DNBArchProtocol::GetArchitecture (),
@@ -1548,21 +1566,6 @@
launch_err);
break;
-#ifdef WITH_SPRINGBOARD
-
- case eLaunchFlavorSpringBoard:
- {
- const char *app_ext = strstr(path, ".app");
- if (app_ext != NULL)
- {
- std::string app_bundle_path(path, app_ext + strlen(".app"));
- return SBLaunchForDebug (app_bundle_path.c_str(), argv, envp, no_stdio, launch_err);
- }
- }
- break;
-
-#endif
-
default:
// Invalid launch
launch_err.SetError(NUB_GENERIC_ERROR, DNBError::Generic);
More information about the lldb-commits
mailing list