[Lldb-commits] [lldb] r228824 - Add extra check that target was stopped before the *stopped is sent.

Ilia K ki.stfu at gmail.com
Wed Feb 11 03:24:21 PST 2015


Author: ki.stfu
Date: Wed Feb 11 05:24:20 2015
New Revision: 228824

URL: http://llvm.org/viewvc/llvm-project?rev=228824&view=rev
Log:
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.


Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=228824&r1=228823&r2=228824&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Wed Feb 11 05:24:20 2015
@@ -3136,7 +3136,7 @@ Process::Launch (ProcessLaunchInfo &laun
 
                         // 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)





More information about the lldb-commits mailing list