[Lldb-commits] [lldb] r163245 - /lldb/trunk/source/Target/Process.cpp
Jim Ingham
jingham at apple.com
Wed Sep 5 14:13:56 PDT 2012
Author: jingham
Date: Wed Sep 5 16:13:56 2012
New Revision: 163245
URL: http://llvm.org/viewvc/llvm-project?rev=163245&view=rev
Log:
If the ThreadList ShouldStop restarts the target, don't resume it again.
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=163245&r1=163244&r2=163245&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Wed Sep 5 16:13:56 2012
@@ -3283,6 +3283,9 @@
if (m_thread_list.ShouldStop (event_ptr) == false)
{
+ // ShouldStop may have restarted the target already. If so, don't
+ // resume it twice.
+ bool was_restarted = ProcessEventData::GetRestartedFromEvent (event_ptr);
switch (m_thread_list.ShouldReportStop (event_ptr))
{
case eVoteYes:
@@ -3296,7 +3299,8 @@
if (log)
log->Printf ("Process::ShouldBroadcastEvent (%p) Restarting process from state: %s", event_ptr, StateAsCString(state));
- PrivateResume ();
+ if (!was_restarted)
+ PrivateResume ();
}
else
{
More information about the lldb-commits
mailing list