Added optional "singleStep" parameter to ContinueThread().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35963 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-03-26 21:16:43 +00:00
parent bb2576f0c8
commit 1c421b8df4
2 changed files with 4 additions and 3 deletions

View File

@ -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,

View File

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