[Lldb-commits] [lldb] r159148 - /lldb/branches/apple/igneous/source/Target/ThreadPlanStepOverBreakpoint.cpp

Jim Ingham jingham at apple.com
Mon Jun 25 10:43:45 PDT 2012


Author: jingham
Date: Mon Jun 25 12:43:44 2012
New Revision: 159148

URL: http://llvm.org/viewvc/llvm-project?rev=159148&view=rev
Log:
Handle getting a signal while single stepping over a breakpoint correctly.

Modified:
    lldb/branches/apple/igneous/source/Target/ThreadPlanStepOverBreakpoint.cpp

Modified: lldb/branches/apple/igneous/source/Target/ThreadPlanStepOverBreakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/apple/igneous/source/Target/ThreadPlanStepOverBreakpoint.cpp?rev=159148&r1=159147&r2=159148&view=diff
==============================================================================
--- lldb/branches/apple/igneous/source/Target/ThreadPlanStepOverBreakpoint.cpp (original)
+++ lldb/branches/apple/igneous/source/Target/ThreadPlanStepOverBreakpoint.cpp Mon Jun 25 12:43:44 2012
@@ -60,7 +60,16 @@
 bool
 ThreadPlanStepOverBreakpoint::PlanExplainsStop ()
 {
-    return true;
+    StopInfoSP stop_info_sp = GetPrivateStopReason();
+    if (stop_info_sp)
+    {
+        StopReason reason = stop_info_sp->GetStopReason();
+        if (reason == eStopReasonTrace || reason == eStopReasonNone)
+            return true;
+        else
+            return false;
+    }
+    return false;
 }
 
 bool





More information about the lldb-commits mailing list