[Lldb-commits] [lldb] r232370 - Check that RestartedFromEvent flag before processing the state changed event.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Mon Mar 16 04:47:25 PDT 2015
Author: abidh
Date: Mon Mar 16 06:47:24 2015
New Revision: 232370
URL: http://llvm.org/viewvc/llvm-project?rev=232370&view=rev
Log:
Check that RestartedFromEvent flag before processing the state changed event.
Not checking for this flags caused lldb-mi to issue stop notification when target
has started running again. It also tried to get stack when target was running and
this caused randon failure.
Approved in http://lists.cs.uiuc.edu/pipermail/lldb-dev/2015-March/006953.html
Modified:
lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp?rev=232370&r1=232369&r2=232370&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp Mon Mar 16 06:47:24 2015
@@ -800,6 +800,8 @@ CMICmnLLDBDebuggerHandleEvents::HandleEv
bool
CMICmnLLDBDebuggerHandleEvents::HandleProcessEventBroadcastBitStateChanged(const lldb::SBEvent &vEvent)
{
+ if (lldb::SBProcess::GetRestartedFromEvent (vEvent))
+ return true;
bool bOk = ChkForStateChanges();
bOk = bOk && GetProcessStdout();
bOk = bOk && GetProcessStderr();
More information about the lldb-commits
mailing list