From 04e6314cf4dab5d603776ef6bfbbfae1fa7fdaf4 Mon Sep 17 00:00:00 2001 From: Tamas Berghammer Date: Mon, 23 Feb 2015 10:59:54 +0000 Subject: [PATCH] Set error status when failed to catch stop after launch 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 30f310a..2a76e88 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -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(); } -- 2.7.4