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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user