diff options
author | Jason Molenda <jmolenda@apple.com> | 2011-07-08 00:00:32 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2011-07-08 00:00:32 +0000 |
commit | 4e0c94be76bb5d539ec22692bc432da12c7f7299 (patch) | |
tree | c1e56ed9423e37465340dc941767b69d15e26a8b /lldb/tools/debugserver/source/debugserver.cpp | |
parent | 9c6028f98e9ba5358b3038a83656ff0919df9c9b (diff) | |
download | bcm5719-llvm-4e0c94be76bb5d539ec22692bc432da12c7f7299.tar.gz bcm5719-llvm-4e0c94be76bb5d539ec22692bc432da12c7f7299.zip |
Handle the possible case where the process launch failed
but we don't have an error message.
llvm-svn: 134662
Diffstat (limited to 'lldb/tools/debugserver/source/debugserver.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/debugserver.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/debugserver.cpp b/lldb/tools/debugserver/source/debugserver.cpp index 24e33e72a0e..53f649d9505 100644 --- a/lldb/tools/debugserver/source/debugserver.cpp +++ b/lldb/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(); |