summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-03-13 01:52:09 +0000
committerJim Ingham <jingham@apple.com>2013-03-13 01:52:09 +0000
commit9026dee92eeb6635d9a6446aaf58f80d7ba613ed (patch)
tree6f8b13331b7a60784a56194d1182ee067094a173 /lldb/source/Target/Thread.cpp
parent199e4f7dc531167adfb790501be602186dff250b (diff)
downloadbcm5719-llvm-9026dee92eeb6635d9a6446aaf58f80d7ba613ed.tar.gz
bcm5719-llvm-9026dee92eeb6635d9a6446aaf58f80d7ba613ed.zip
Don't use the fact that we stopped with a "Breakpoint" stop reason to decide to step over the breakpoint. It's
better to check directly whether there is a breakpoint site at the PC. llvm-svn: 176919
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 3620f49f617..44f326d77c3 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -479,11 +479,13 @@ Thread::SetupForResume ()
// telling the current plan it will resume, since we might change what the current
// plan is.
- StopReason stop_reason = lldb::eStopReasonInvalid;
- StopInfoSP stop_info_sp = GetStopInfo();
- if (stop_info_sp.get())
- stop_reason = stop_info_sp->GetStopReason();
- if (stop_reason == lldb::eStopReasonBreakpoint)
+// StopReason stop_reason = lldb::eStopReasonInvalid;
+// StopInfoSP stop_info_sp = GetStopInfo();
+// if (stop_info_sp.get())
+// stop_reason = stop_info_sp->GetStopReason();
+// if (stop_reason == lldb::eStopReasonBreakpoint)
+ BreakpointSiteSP bp_site_sp = GetProcess()->GetBreakpointSiteList().FindByAddress(GetRegisterContext()->GetPC());
+ if (bp_site_sp)
{
// Note, don't assume there's a ThreadPlanStepOverBreakpoint, the target may not require anything
// special to step over a breakpoint.
OpenPOWER on IntegriCloud