Add CLI command for saving debug reports.

This commit is contained in:
Rene Gollent
2012-11-22 23:41:34 -05:00
parent 53342f94c9
commit bb7d146c64
4 changed files with 65 additions and 2 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2011, Rene Gollent, [email protected].
* Copyright 2011-2012, Rene Gollent, [email protected].
* Copyright 2012, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -17,6 +17,7 @@
#include "CliContext.h"
#include "CliContinueCommand.h"
#include "CliDebugReportCommand.h"
#include "CliQuitCommand.h"
#include "CliStackTraceCommand.h"
#include "CliStopCommand.h"
@@ -284,7 +285,9 @@ CommandLineUserInterface::_RegisterCommands()
_RegisterCommand("sc", stackTraceCommandReference2.Detach()) &&
_RegisterCommand("stop", new(std::nothrow) CliStopCommand) &&
_RegisterCommand("thread", new(std::nothrow) CliThreadCommand) &&
_RegisterCommand("threads", new(std::nothrow) CliThreadsCommand)) {
_RegisterCommand("threads", new(std::nothrow) CliThreadsCommand) &&
_RegisterCommand("save-report",
new(std::nothrow) CliDebugReportCommand)) {
return B_OK;
}