ThreadHandler: allow an optional stop reason to be passed to...

...HandleThreadDebugged().
This commit is contained in:
Rene Gollent 2013-07-07 12:55:23 -04:00
parent 9a14c8a25d
commit ea84db9e2f
2 changed files with 5 additions and 3 deletions

View File

@ -98,9 +98,10 @@ ThreadHandler::SetBreakpointAndRun(target_addr_t address)
bool
ThreadHandler::HandleThreadDebugged(ThreadDebuggedEvent* event)
ThreadHandler::HandleThreadDebugged(ThreadDebuggedEvent* event,
const BString& stoppedReason)
{
return _HandleThreadStopped(NULL, THREAD_STOPPED_DEBUGGED);
return _HandleThreadStopped(NULL, THREAD_STOPPED_DEBUGGED, stoppedReason);
}

View File

@ -41,7 +41,8 @@ public:
// All Handle*() methods are invoked in team debugger thread,
// looper lock held.
bool HandleThreadDebugged(
ThreadDebuggedEvent* event);
ThreadDebuggedEvent* event,
const BString& stoppedReason = BString());
bool HandleDebuggerCall(
DebuggerCallEvent* event);
bool HandleBreakpointHit(