diff options
| author | Jim Ingham <jingham@apple.com> | 2010-10-20 00:39:53 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2010-10-20 00:39:53 +0000 |
| commit | b15bfc753c67f7af5eee131da04f007fd5af91fb (patch) | |
| tree | 033d69708f181695d5030ea293a62186510ec6fe /lldb/source/Target/ThreadPlanTestCondition.cpp | |
| parent | 20f7ab72b1043fa288c5471dc846581d3a33d9ea (diff) | |
| download | bcm5719-llvm-b15bfc753c67f7af5eee131da04f007fd5af91fb.tar.gz bcm5719-llvm-b15bfc753c67f7af5eee131da04f007fd5af91fb.zip | |
Don't cache the public stop reason, since it can change as plan completion gets processed. That means GetStopReason needs to return a shared pointer, not a pointer to the thread's cached version. Also allow the thread plans to get and set the thread private stop reason - that is usually more appropriate for the logic the thread plans need to do.
llvm-svn: 116892
Diffstat (limited to 'lldb/source/Target/ThreadPlanTestCondition.cpp')
| -rw-r--r-- | lldb/source/Target/ThreadPlanTestCondition.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Target/ThreadPlanTestCondition.cpp b/lldb/source/Target/ThreadPlanTestCondition.cpp index 30fe739136f..d66fff7bca5 100644 --- a/lldb/source/Target/ThreadPlanTestCondition.cpp +++ b/lldb/source/Target/ThreadPlanTestCondition.cpp @@ -110,9 +110,9 @@ ThreadPlanTestCondition::ShouldStop (Event *event_ptr) Process::ProcessEventData *new_data = new Process::ProcessEventData (m_thread.GetProcess().GetSP(), eStateStopped); event_ptr->SetData(new_data); event_ptr->SetType(Process::eBroadcastBitStateChanged); - m_thread.SetStopInfo(StopInfo::CreateStopReasonWithBreakpointSiteID (m_thread, - m_break_loc_sp->GetBreakpointSite()->GetID(), - m_did_stop)); + SetStopInfo(StopInfo::CreateStopReasonWithBreakpointSiteID (m_thread, + m_break_loc_sp->GetBreakpointSite()->GetID(), + m_did_stop)); if (m_did_stop) { Process::ProcessEventData::SetRestartedInEvent (event_ptr, false); |

