* Added notifications for thread state/CPU state/stack trace changes. The team

window listens for those and updates the buttons correctly.
* Added basic handling for the thread stopping debug events in the team
  debugger.
* Forward the thread run/stop/step requests to the team debugger and actually
  run/stop/step the thread. Running/stopping works, all three stepping actions
  just step by a single instruction ATM, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31107 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-06-18 21:45:14 +00:00
parent 18882afba2
commit b6aff5aa83
10 changed files with 371 additions and 22 deletions
@@ -131,6 +131,26 @@ DebuggerInterface::ContinueThread(thread_id thread)
}
status_t
DebuggerInterface::StopThread(thread_id thread)
{
return debug_thread(thread);
}
status_t
DebuggerInterface::SingleStepThread(thread_id thread)
{
debug_nub_continue_thread continueMessage;
continueMessage.thread = thread;
continueMessage.handle_event = B_THREAD_DEBUG_HANDLE_EVENT;
continueMessage.single_step = true;
return write_port(fNubPort, B_DEBUG_MESSAGE_CONTINUE_THREAD,
&continueMessage, sizeof(continueMessage));
}
status_t
DebuggerInterface::GetThreadInfos(BObjectList<ThreadInfo>& infos)
{