summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-10-20 00:39:53 +0000
committerJim Ingham <jingham@apple.com>2010-10-20 00:39:53 +0000
commitb15bfc753c67f7af5eee131da04f007fd5af91fb (patch)
tree033d69708f181695d5030ea293a62186510ec6fe /lldb/source/Target/Process.cpp
parent20f7ab72b1043fa288c5471dc846581d3a33d9ea (diff)
downloadbcm5719-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/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 7d481a37c33..ce072ed8cb4 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -1734,10 +1734,10 @@ Process::ProcessEventData::DoOnRemoval (Event *event_ptr)
{
lldb::ThreadSP thread_sp = m_process_sp->GetThreadList().GetThreadAtIndex(idx);
- StopInfo *stop_info = thread_sp->GetStopInfo ();
- if (stop_info)
+ StopInfoSP stop_info_sp = thread_sp->GetStopInfo ();
+ if (stop_info_sp)
{
- stop_info->PerformAction(event_ptr);
+ stop_info_sp->PerformAction(event_ptr);
}
}
OpenPOWER on IntegriCloud