Add memory dumping commands similar to those in KDL.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "CliContext.h"
|
||||
#include "CliContinueCommand.h"
|
||||
#include "CliDebugReportCommand.h"
|
||||
#include "CliDumpMemoryCommand.h"
|
||||
#include "CliPrintVariableCommand.h"
|
||||
#include "CliQuitCommand.h"
|
||||
#include "CliStackFrameCommand.h"
|
||||
@@ -310,6 +311,24 @@ CommandLineUserInterface::_RegisterCommands()
|
||||
BReference<CliCommand> stackTraceCommandReference2(
|
||||
stackTraceCommandReference.Get());
|
||||
|
||||
BReference<CliCommand> dumpCommandReference(
|
||||
new(std::nothrow) CliDumpMemoryCommand, true);
|
||||
BReference<CliCommand> dumpCommandReference2(
|
||||
dumpCommandReference.Get());
|
||||
if (!_RegisterCommand("db", dumpCommandReference.Detach()))
|
||||
return B_NO_MEMORY;
|
||||
dumpCommandReference = dumpCommandReference2.Get();
|
||||
if (!_RegisterCommand("ds", dumpCommandReference.Detach()))
|
||||
return B_NO_MEMORY;
|
||||
dumpCommandReference = dumpCommandReference2.Get();
|
||||
if (!_RegisterCommand("dw", dumpCommandReference.Detach()))
|
||||
return B_NO_MEMORY;
|
||||
dumpCommandReference = dumpCommandReference2.Get();
|
||||
if (!_RegisterCommand("dl", dumpCommandReference.Detach()))
|
||||
return B_NO_MEMORY;
|
||||
if (!_RegisterCommand("string", dumpCommandReference2.Detach()))
|
||||
return B_NO_MEMORY;
|
||||
|
||||
if (_RegisterCommand("bt", stackTraceCommandReference.Detach())
|
||||
&& _RegisterCommand("continue", new(std::nothrow) CliContinueCommand)
|
||||
&& _RegisterCommand("frame", new(std::nothrow) CliStackFrameCommand)
|
||||
|
||||
Reference in New Issue
Block a user