The Pedigree Project  0.1
HelpCommand.cc
1 /*
2  * Copyright (c) 2008-2014, Pedigree Developers
3  *
4  * Please see the CONTRIB file in the root of the source tree for a full
5  * list of contributors.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #include "pedigree/kernel/debugger/commands/HelpCommand.h"
21 
22 class DebuggerIO;
23 
25 {
26 }
27 
29 {
30 }
31 
33  const HugeStaticString &input, HugeStaticString &output)
34 {
35 }
36 
38  const HugeStaticString &input, HugeStaticString &output,
39  InterruptState &state, DebuggerIO *pScreen)
40 {
41  output += "page-allocations - Inspect page allocations.\n";
42  output += "backtrace - Obtain a backtrace.\n";
43  output += "cpuinfo - Obtain CPUINFO details (stubbed)\n";
44  output += "devices - Inspect detected devices.\n";
45  output += "disassemble - Disassemble contents at given address.\n";
46  output += "dump - Dump machine state (registers etc).\n";
47  output += "help - Display this text.\n";
48  output +=
49  "io - List allocated IO ports and memory regions.\n";
50  output += "log - View the kernel log.\n";
51  output +=
52  "lookup - Lookup the symbol corresponding to an address.\n";
53  output += "memory - Inspect the contents of (virtual) memory.\n";
54  output += "panic - Cause a system panic.\n";
55  output += "quit - Leave and continue execution.\n";
56  output += "step - Single step and reenter the debugger.\n";
57  output += "syscall - Trace syscall execution times (stubbed).\n";
58  output += "threads - Inspect what each thread is doing.\n";
59  output += "trace - Graphical execution tracer.\n";
60  output += "locks - Show spinlock information.\n";
61  output +=
62  "mapping - Show V->P information for an effective addr.\n";
63  return true;
64 }
bool execute(const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
Definition: HelpCommand.cc:37
void autocomplete(const HugeStaticString &input, HugeStaticString &output)
Definition: HelpCommand.cc:32