[Lldb-commits] [PATCH] Expect stop reason watchpoint for the step over breakpoint thread plan

Tamas Berghammer tberghammer at google.com
Thu Mar 5 06:42:59 PST 2015


Hi jingham,

Expect stop reason watchpoint for the step over breakpoint thread plan

Some kernel report a hardware watchpoint hit trap after a single step operation instead of a trace operation.

http://reviews.llvm.org/D8081

Files:
  source/Target/ThreadPlanStepOverBreakpoint.cpp

Index: source/Target/ThreadPlanStepOverBreakpoint.cpp
===================================================================
--- source/Target/ThreadPlanStepOverBreakpoint.cpp
+++ source/Target/ThreadPlanStepOverBreakpoint.cpp
@@ -76,6 +76,8 @@
         {
         case eStopReasonTrace:
         case eStopReasonNone:
+        // Some kernel reports the stop reason for a single step request as a hit of a hardware watchpoint
+        case eStopReasonWatchpoint:
             return true;
         case eStopReasonBreakpoint:
             // It's a little surprising that we stop here for a breakpoint hit.  However, when you single step ONTO a

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8081.21274.patch
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150305/531061ea/attachment.bin>


More information about the lldb-commits mailing list