hrev44890 adds 1 changeset to branch 'master' old head: bbe04a83e0089df2db31115f04c2a8ebb26535a9 new head: dc074b45120e1f93f52b6be0f0961112252ac14e overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=dc074b4+%5Ebbe04a8 ---------------------------------------------------------------------------- dc074b4: Include stop reason in report if available. [ Rene Gollent <anevilyak@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev44890 Commit: dc074b45120e1f93f52b6be0f0961112252ac14e URL: http://cgit.haiku-os.org/haiku/commit/?id=dc074b4 Author: Rene Gollent <anevilyak@xxxxxxxxx> Date: Sat Nov 24 14:05:55 2012 UTC ---------------------------------------------------------------------------- 1 file changed, 8 insertions(+), 2 deletions(-) src/apps/debugger/controllers/DebugReportGenerator.cpp | 10 ++++++++-- ---------------------------------------------------------------------------- diff --git a/src/apps/debugger/controllers/DebugReportGenerator.cpp b/src/apps/debugger/controllers/DebugReportGenerator.cpp index 2185af1..d6defd1 100644 --- a/src/apps/debugger/controllers/DebugReportGenerator.cpp +++ b/src/apps/debugger/controllers/DebugReportGenerator.cpp @@ -218,13 +218,19 @@ DebugReportGenerator::_DumpRunningThreads(BString& _output) for (ThreadList::ConstIterator it = fTeam->Threads().GetIterator(); ::Thread* thread = it.Next();) { try { - data.SetToFormat("\t%s %s, id: %" B_PRId32", state: %s\n", + data.SetToFormat("\t%s %s, id: %" B_PRId32", state: %s", thread->Name(), thread->IsMainThread() ? "(main)" : "", thread->ID(), UiUtils::ThreadStateToString(thread->State(), thread->StoppedReason())); - _output << data; + if (thread->State() == THREAD_STATE_STOPPED) { + const BString& stoppedInfo = thread->StoppedReasonInfo(); + if (stoppedInfo.Length() != 0) + data << " (" << stoppedInfo << ")"; + } + + _output << data << "\n"; if (thread->State() == THREAD_STATE_STOPPED) { // we need to release our lock on the team here