[Lldb-commits] [lldb] r134662 - /lldb/trunk/tools/debugserver/source/debugserver.cpp
Jason Molenda
jmolenda at apple.com
Thu Jul 7 17:00:32 PDT 2011
Author: jmolenda
Date: Thu Jul 7 19:00:32 2011
New Revision: 134662
URL: http://llvm.org/viewvc/llvm-project?rev=134662&view=rev
Log:
Handle the possible case where the process launch failed
but we don't have an error message.
Modified:
lldb/trunk/tools/debugserver/source/debugserver.cpp
Modified: lldb/trunk/tools/debugserver/source/debugserver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/debugserver.cpp?rev=134662&r1=134661&r2=134662&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/debugserver.cpp (original)
+++ lldb/trunk/tools/debugserver/source/debugserver.cpp Thu Jul 7 19:00:32 2011
@@ -228,12 +228,18 @@
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();
More information about the lldb-commits
mailing list