From 333fc18ca65bc0ae06a41cf5309cd2b2bbed03f5 Mon Sep 17 00:00:00 2001 From: Ilia K Date: Wed, 11 Feb 2015 11:24:20 +0000 Subject: Add extra check that target was stopped before the *stopped is sent. This patch fixes r228417. It's required because eStateCrushed case wasn't investigated. llvm-svn: 228824 --- lldb/source/Target/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Target/Process.cpp') diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 2390c04ab35..c4eccfc78c3 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -3136,7 +3136,7 @@ Process::Launch (ProcessLaunchInfo &launch_info) // Target was stopped at entry as was intended. Need to notify the listeners // about it. - if (launch_info.GetFlags().Test(eLaunchFlagStopAtEntry) == true) + if (state == eStateStopped && launch_info.GetFlags().Test(eLaunchFlagStopAtEntry)) HandlePrivateEvent(event_sp); } else if (state == eStateExited) -- cgit v1.2.3