diff options
author | Ilia K <ki.stfu@gmail.com> | 2015-02-11 11:24:20 +0000 |
---|---|---|
committer | Ilia K <ki.stfu@gmail.com> | 2015-02-11 11:24:20 +0000 |
commit | 333fc18ca65bc0ae06a41cf5309cd2b2bbed03f5 (patch) | |
tree | 501c597406641b9375d1b1fd328c697eb2bb7aba /lldb/source/Target/Process.cpp | |
parent | e13c2731ba83ce3f820026878240f72d3b7df0d5 (diff) | |
download | bcm5719-llvm-333fc18ca65bc0ae06a41cf5309cd2b2bbed03f5.tar.gz bcm5719-llvm-333fc18ca65bc0ae06a41cf5309cd2b2bbed03f5.zip |
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
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |