Set error status when failed to catch stop after launch
authorTamas Berghammer <tberghammer@google.com>
Mon, 23 Feb 2015 10:59:54 +0000 (10:59 +0000)
committerTamas Berghammer <tberghammer@google.com>
Mon, 23 Feb 2015 10:59:54 +0000 (10:59 +0000)
Process::Launch try to catch a stop signal after launching a process. If
it is unsuccessful it destroy the process but previously still reported
that the process launched successfully. This behavior caused a
deadlock. With thic change the process launch error reported correctly.

Differential revision: http://reviews.llvm.org/D7784

llvm-svn: 230212

lldb/source/Target/Process.cpp

index 30f310a..2a76e88 100644 (file)
@@ -3101,6 +3101,7 @@ Process::Launch (ProcessLaunchInfo &launch_info)
                     {
                         // We were able to launch the process, but we failed to
                         // catch the initial stop.
+                        error.SetErrorString ("failed to catch stop after launch");
                         SetExitStatus (0, "failed to catch stop after launch");
                         Destroy();
                     }