Debugger CLI: Add "threads" command

It just lists the team's thread.
This commit is contained in:
Ingo Weinhold
2012-07-23 23:52:46 +02:00
parent 533a73766d
commit 48b4d20480
4 changed files with 68 additions and 1 deletions
@@ -20,6 +20,7 @@
#include "CliContext.h"
#include "CliQuitCommand.h"
#include "CliThreadsCommand.h"
// #pragma mark - CommandEntry
@@ -243,7 +244,8 @@ status_t
CommandLineUserInterface::_RegisterCommands()
{
if (_RegisterCommand("help", new(std::nothrow) HelpCommand(this)) &&
_RegisterCommand("quit", new(std::nothrow) CliQuitCommand)) {
_RegisterCommand("quit", new(std::nothrow) CliQuitCommand) &&
_RegisterCommand("threads", new(std::nothrow) CliThreadsCommand)) {
return B_OK;
}