hrev45545 adds 1 changeset to branch 'master' old head: 0fef11f1a8b62e67aadf921fc6ddd31cad5b36bb new head: 2b7a67e7aaeb0c7139345af6a28727dd3ffbe78c overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=2b7a67e+%5E0fef11f ---------------------------------------------------------------------------- 2b7a67e: Fix #9700. - CLI "threads" command now outputs the exception reason for stopped threads, if available. [ Rene Gollent <anevilyak@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev45545 Commit: 2b7a67e7aaeb0c7139345af6a28727dd3ffbe78c URL: http://cgit.haiku-os.org/haiku/commit/?id=2b7a67e Author: Rene Gollent <anevilyak@xxxxxxxxx> Date: Tue Apr 23 01:09:52 2013 UTC Ticket: https://dev.haiku-os.org/ticket/9700 ---------------------------------------------------------------------------- 1 file changed, 8 insertions(+), 1 deletion(-) src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp | 9 ++++++++- ---------------------------------------------------------------------------- diff --git a/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp b/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp index 6bb84f3..8387b49 100644 --- a/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp +++ b/src/apps/debugger/user_interface/cli/CliThreadsCommand.cpp @@ -38,7 +38,14 @@ CliThreadsCommand::Execute(int argc, const char* const* argv, Thread* thread = it.Next();) { const char* stateString = UiUtils::ThreadStateToString( thread->State(), thread->StoppedReason()); - printf("%10" B_PRId32 " %-9s \"%s\"\n", thread->ID(), stateString, + printf("%10" B_PRId32 " %-9s \"%s\"", thread->ID(), stateString, thread->Name()); + + const BString& stoppedReason = thread->StoppedReasonInfo(); + if (thread->State() == THREAD_STATE_STOPPED + && !stoppedReason.IsEmpty()) { + printf(" (Reason: \"%s\")", stoppedReason.String()); + } + printf("\n"); } }