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
This commit is contained in:
Ilia K 2015-02-11 11:24:20 +00:00
parent e13c2731ba
commit 333fc18ca6
1 changed files with 1 additions and 1 deletions

View File

@ -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)