The Pedigree Project
0.1
|
#include <DebuggerCommand.h>
Public Member Functions | |
virtual void | autocomplete (const HugeStaticString &input, HugeStaticString &output)=0 |
virtual bool | execute (const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)=0 |
virtual const NormalStaticString | getString ()=0 |
Abstract class defining the interface for a DebuggerCommand. Class Debugger has a set of these DebuggerCommands, and calls the getString and autocomplete functions to augment the command line interface with visual prompts.
Definition at line 36 of file DebuggerCommand.h.
|
pure virtual |
Return an autocomplete string, given an input string. The string put into *output must not exceed len in length.
Implemented in LocksCommand, DevicesCommand, AllocationCommand, SlamCommand, ThreadsCommand, TraceCommand, LogViewer, MemoryInspector, PanicCommand, BreakpointCommand, DumpCommand, HelpCommand, IoCommand, QuitCommand, StepCommand, LookupCommand, MappingCommand, Backtracer, CpuInfoCommand, DisassembleCommand, and SyscallTracerCommand.
Referenced by Debugger::start().
|
pure virtual |
Execute the command with the given screen. The command can take over the screen while executing, but must return it to CLI mode (via enableCLI) before returning.
Implemented in LocksCommand, DevicesCommand, TraceCommand, AllocationCommand, SlamCommand, ThreadsCommand, LogViewer, MemoryInspector, PanicCommand, BreakpointCommand, DumpCommand, HelpCommand, IoCommand, QuitCommand, StepCommand, LookupCommand, MappingCommand, SyscallTracerCommand, Backtracer, CpuInfoCommand, and DisassembleCommand.
Referenced by Debugger::start().
|
pure virtual |
Returns the string representation of this command.
Implemented in LocksCommand, DevicesCommand, TraceCommand, AllocationCommand, SlamCommand, ThreadsCommand, LogViewer, MemoryInspector, PanicCommand, BreakpointCommand, DumpCommand, HelpCommand, IoCommand, QuitCommand, StepCommand, LookupCommand, MappingCommand, SyscallTracerCommand, Backtracer, CpuInfoCommand, and DisassembleCommand.
Referenced by DebuggerIO::readCli(), and Debugger::start().