From 847075607f536d5a2304880785825775ffe76d3b Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 1 Jun 2012 23:43:05 +0000 Subject: rdar://problem/11320188 Designate MachThreadList as a transaction coordinator when doing Enable/DisableHardwareWatchpoint on the list of threads. In case the operation (iterating on the threads and doing enable/disable) fails in the middle, we rollback the already enabled/disabled threads to their checkpointed states. When all the threads succeed in enable/disable, we ask each thread to finsih the transaction and commit the change of the debug state. llvm-svn: 157858 --- lldb/tools/debugserver/source/MacOSX/MachThread.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lldb/tools/debugserver/source/MacOSX/MachThread.cpp') diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp index aca47f9120f..f9e3dd569f6 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp @@ -699,6 +699,18 @@ MachThread::HardwareWatchpointStateChanged () m_arch_ap->HardwareWatchpointStateChanged(); } +bool +MachThread::RollbackTransForHWP() +{ + return m_arch_ap->RollbackTransForHWP(); +} + +bool +MachThread::FinishTransForHWP() +{ + return m_arch_ap->FinishTransForHWP(); +} + bool MachThread::DisableHardwareBreakpoint (const DNBBreakpoint *bp) { -- cgit v1.2.3