Clarify the launch style for debugserver to use.
authorJason Molenda <jmolenda@apple.com>
Tue, 28 Oct 2014 03:15:33 +0000 (03:15 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 28 Oct 2014 03:15:33 +0000 (03:15 +0000)
<rdar://problem/18786645>

llvm-svn: 220761

lldb/tools/debugserver/source/MacOSX/MachProcess.mm
lldb/tools/debugserver/source/com.apple.debugserver.applist.plist
lldb/tools/debugserver/source/com.apple.debugserver.plist

index 98cf95e..62149dc 100644 (file)
@@ -2000,9 +2000,7 @@ MachProcess::LaunchForDebug
                     break; // We tried a BKS launch, but didn't succeed lets get out
             }
         }
-        // In case the executable name has a ".app" fragment which confuses our debugserver,
-        // let's do an intentional fallthrough here...
-        launch_flavor = eLaunchFlavorPosixSpawn;
+        break;
 #endif
 #ifdef WITH_SPRINGBOARD
 
@@ -2032,9 +2030,7 @@ MachProcess::LaunchForDebug
                     break; // We tried a springboard launch, but didn't succeed lets get out
             }
         }
-        // In case the executable name has a ".app" fragment which confuses our debugserver,
-        // let's do an intentional fallthrough here...
-        launch_flavor = eLaunchFlavorPosixSpawn;
+        break;
 
 #endif
 
index 4e847c2..bd4037c 100644 (file)
@@ -10,7 +10,8 @@
        <array>
                <string>/Developer/usr/bin/debugserver</string>
                <string>--lockdown</string>
-               <string>--applist</string>
+        <string>--applist</string>
+        <string>--launch=backboard</string>
        </array>
 </dict>
 </plist>
index aa72606..f61a2ac 100644 (file)
@@ -10,6 +10,7 @@
        <array>
                <string>/Developer/usr/bin/debugserver</string>
                <string>--lockdown</string>
+        <string>--launch=backboard</string>
        </array>
 </dict>
 </plist>