- CLI "threads" command now outputs the exception reason for stopped
  threads, if available.
This commit is contained in:
Rene Gollent
2013-04-22 21:12:49 -04:00
parent 0fef11f1a8
commit 2b7a67e7aa
@@ -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");
}
}