Skip to content

Commit

Permalink
Add extra check that target was stopped before the *stopped is sent.
Browse files Browse the repository at this point in the history
This patch fixes r228417. It's required because eStateCrushed case wasn't investigated.

llvm-svn: 228824
  • Loading branch information
k15tfu committed Feb 11, 2015
1 parent e13c273 commit 333fc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Target/Process.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 333fc18

Please sign in to comment.