Do not enable hardware stepping when resuming a step-enabled thread.
The previous implementation of HardwareSingleStep wrongly resumed the thread and
single-stepped over the next instruction. Use the proper call to ProcessMonitor.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@123800 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@
case lldb::eStateStepping:
SetState(resume_state);
- status = GetRegisterContext()->HardwareSingleStep(true);
+ status = monitor.SingleStep(GetID());
break;
}