diff options
author | Tamas Berghammer <tberghammer@google.com> | 2015-02-23 10:59:54 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2015-02-23 10:59:54 +0000 |
commit | 04e6314cf4dab5d603776ef6bfbbfae1fa7fdaf4 (patch) | |
tree | 472ab7669f976ca1301808928d2ea137db8aacda /lldb/source/Target/Process.cpp | |
parent | dbb41cf41899db8c2900800f5cb1b8eff9fbcc29 (diff) | |
download | bcm5719-llvm-04e6314cf4dab5d603776ef6bfbbfae1fa7fdaf4.tar.gz bcm5719-llvm-04e6314cf4dab5d603776ef6bfbbfae1fa7fdaf4.zip |
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
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 30f310aeefd..2a76e88f2bb 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(); } |