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
@@ -98,9 +98,10 @@ ThreadHandler::SetBreakpointAndRun(target_addr_t address)
bool 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);
} }
@@ -41,7 +41,8 @@ public:
// All Handle*() methods are invoked in team debugger thread, // All Handle*() methods are invoked in team debugger thread,
// looper lock held. // looper lock held.
bool HandleThreadDebugged( bool HandleThreadDebugged(
ThreadDebuggedEvent* event); ThreadDebuggedEvent* event,
const BString& stoppedReason = BString());
bool HandleDebuggerCall( bool HandleDebuggerCall(
DebuggerCallEvent* event); DebuggerCallEvent* event);
bool HandleBreakpointHit( bool HandleBreakpointHit(