aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2011-07-08 00:00:32 +0000
committerJason Molenda <jmolenda@apple.com>2011-07-08 00:00:32 +0000
commit37f1b929ece512d5ad525f319b8705c123ba9835 (patch)
treec0313f694ed653448c048bb813a83eff6fab046a /tools
parent9a0688f7aee3f75cf1a66641cb2984af6577f3a9 (diff)
downloadlldb-37f1b929ece512d5ad525f319b8705c123ba9835.tar.gz
Handle the possible case where the process launch failed
but we don't have an error message. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@134662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/debugserver/source/debugserver.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/debugserver/source/debugserver.cpp b/tools/debugserver/source/debugserver.cpp
index 24e33e72a..53f649d95 100644
--- a/tools/debugserver/source/debugserver.cpp
+++ b/tools/debugserver/source/debugserver.cpp
@@ -228,12 +228,18 @@ RNBRunLoopLaunchInferior (RNBRemote *remote, const char *stdin_path, const char
g_pid = pid;
- if (pid == INVALID_NUB_PROCESS && strlen(launch_err_str) > 0)
+ if (pid == INVALID_NUB_PROCESS && strlen (launch_err_str) > 0)
{
DNBLogThreaded ("%s DNBProcessLaunch() returned error: '%s'", __FUNCTION__, launch_err_str);
ctx.LaunchStatus().SetError(-1, DNBError::Generic);
ctx.LaunchStatus().SetErrorString(launch_err_str);
}
+ else if (pid == INVALID_NUB_PROCESS)
+ {
+ DNBLogThreaded ("%s DNBProcessLaunch() failed to launch process, unknown failure", __FUNCTION__);
+ ctx.LaunchStatus().SetError(-1, DNBError::Generic);
+ ctx.LaunchStatus().SetErrorString(launch_err_str);
+ }
else
{
ctx.LaunchStatus().Clear();