Fixed debugserver to not exit when we are able to spawn the process, yet not

launch it due to not being able to get the task port. A SIGHUP was killing us
and also an error string wasn't properly being passed along. Got rid of a
class error variable that can only lead to multi-threaded crashes.

llvm-svn: 109930
This commit is contained in:
Greg Clayton
2010-07-30 23:14:42 +00:00
parent e92d2749b8
commit 3382c2c80d
4 changed files with 39 additions and 55 deletions

View File

@@ -216,7 +216,7 @@ RNBRunLoopLaunchInferior (RNBRemoteSP &remote, const char *stdio_path)
if (pid == INVALID_NUB_PROCESS && strlen(launch_err_str) > 0)
{
DNBLogThreaded ("%s DNBProcessLaunch() returned error: '%s'", __FUNCTION__);
DNBLogThreaded ("%s DNBProcessLaunch() returned error: '%s'", __FUNCTION__, launch_err_str);
ctx.LaunchStatus().SetError(-1, DNBError::Generic);
ctx.LaunchStatus().SetErrorString(launch_err_str);
}
@@ -676,6 +676,7 @@ main (int argc, char *argv[])
// signal (SIGINT, signal_handler);
signal (SIGPIPE, signal_handler);
signal (SIGHUP, signal_handler);
int i;
int attach_pid = INVALID_NUB_PROCESS;