[Lldb-commits] [lldb] r276796 - The ARM single-step handling needs to look for breakpoint on the next instruction.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 26 12:50:25 PDT 2016


Author: jingham
Date: Tue Jul 26 14:50:25 2016
New Revision: 276796

URL: http://llvm.org/viewvc/llvm-project?rev=276796&view=rev
Log:
The ARM single-step handling needs to look for breakpoint on the next instruction.

<rdar://problem/27006685>

Modified:
    lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp?rev=276796&r1=276795&r2=276796&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp Tue Jul 26 14:50:25 2016
@@ -450,7 +450,8 @@ StopInfoMachException::CreateStopReasonW
                     if (exc_code == 1 && exc_sub_code == 0) // EXC_ARM_BREAKPOINT
                     {
                         // This is hit when we single instruction step aka MDSCR_EL1 SS bit 0 is set
-                        return StopInfo::CreateStopReasonToTrace(thread);
+                        is_actual_breakpoint = false;
+                        is_trace_if_actual_breakpoint_missing = true;
                     }
                     if (exc_code == 0x102) // EXC_ARM_DA_DEBUG
                     {




More information about the lldb-commits mailing list