From 1c421b8df4515ec6f53b22d6ea231831494f0c7a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 26 Mar 2010 21:16:43 +0000 Subject: [PATCH] Added optional "singleStep" parameter to ContinueThread(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35963 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/debug/DebugContext.h | 3 ++- src/kits/debug/DebugContext.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/headers/private/debug/DebugContext.h b/headers/private/debug/DebugContext.h index 6051383031..a54aa78d0b 100644 --- a/headers/private/debug/DebugContext.h +++ b/headers/private/debug/DebugContext.h @@ -42,7 +42,8 @@ public: int32 length); status_t ClearWatchpoint(void* address); - status_t ContinueThread(thread_id thread); + status_t ContinueThread(thread_id thread, + bool singleStep = false); status_t SetThreadDebuggingFlags(thread_id thread, int32 flags); status_t GetThreadCpuState(thread_id thread, diff --git a/src/kits/debug/DebugContext.cpp b/src/kits/debug/DebugContext.cpp index f4e2c50749..0663b5e3df 100644 --- a/src/kits/debug/DebugContext.cpp +++ b/src/kits/debug/DebugContext.cpp @@ -140,12 +140,12 @@ BDebugContext::ClearWatchpoint(void* address) status_t -BDebugContext::ContinueThread(thread_id thread) +BDebugContext::ContinueThread(thread_id thread, bool singleStep) { debug_nub_continue_thread message; message.thread = thread; message.handle_event = B_THREAD_DEBUG_HANDLE_EVENT; - message.single_step = false; + message.single_step = singleStep; return SendDebugMessage(B_DEBUG_MESSAGE_CONTINUE_THREAD, &message, sizeof(message), NULL, 0);