summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/debugserver.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-07-30 23:14:42 +0000
committerGreg Clayton <gclayton@apple.com>2010-07-30 23:14:42 +0000
commit3382c2c80d0da67e86c37182038bd583dd2d09fe (patch)
treea1320f2c73d2cb0563a1d0d21c89d855f2d32d9c /lldb/tools/debugserver/source/debugserver.cpp
parente92d2749b8bf5901e2e4df2818116a6a8fba9fa0 (diff)
downloadbcm5719-llvm-3382c2c80d0da67e86c37182038bd583dd2d09fe.tar.gz
bcm5719-llvm-3382c2c80d0da67e86c37182038bd583dd2d09fe.zip
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
Diffstat (limited to 'lldb/tools/debugserver/source/debugserver.cpp')
-rw-r--r--lldb/tools/debugserver/source/debugserver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/debugserver.cpp b/lldb/tools/debugserver/source/debugserver.cpp
index f3041dbbf3a..680a988de52 100644
--- a/lldb/tools/debugserver/source/debugserver.cpp
+++ b/lldb/tools/debugserver/source/debugserver.cpp
@@ -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;
OpenPOWER on IntegriCloud