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);