[Lldb-commits] [PATCH 7/9] Do not enable hardware stepping when resuming a step-enabled thread.

Stephen Wilson wilsons at start.ca
Tue Jan 18 14:39:13 PST 2011


The previous implementation of HardwareSingleStep wrongly resumed the thread and
single-stepped over the next instruction.  Use the proper call to ProcessMonitor.

diff --git a/source/Plugins/Process/Linux/LinuxThread.cpp b/source/Plugins/Process/Linux/LinuxThread.cpp
index de1ca51..b7b2df1 100644
--- a/source/Plugins/Process/Linux/LinuxThread.cpp
+++ b/source/Plugins/Process/Linux/LinuxThread.cpp
@@ -153,7 +153,7 @@ LinuxThread::Resume()
 
     case lldb::eStateStepping:
         SetState(resume_state);
-        status = GetRegisterContext()->HardwareSingleStep(true);
+        status = monitor.SingleStep(GetID());
         break;
     }
 
-- 
1.7.3.5




More information about the lldb-commits mailing list