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
22class DebuggerIO;
23
25
27
29
31 InterruptState& state, DebuggerIO* pScreen) {
32 output += "page-allocations - Inspect page allocations.\n";
33 output += "backtrace - Obtain a backtrace.\n";
34 output += "cpuinfo - Obtain CPUINFO details (stubbed)\n";
35 output += "devices - Inspect detected devices.\n";
36 output += "disassemble - Disassemble contents at given address.\n";
37 output += "dump - Dump machine state (registers etc).\n";
38 output += "help - Display this text.\n";
39 output += "io - List allocated IO ports and memory regions.\n";
40 output += "irqs [line] - Show detached interrupt-line state.\n";
41 output += "log - View the kernel log.\n";
42 output += "lookup - Lookup the symbol corresponding to an address.\n";
43 output += "memory - Inspect the contents of (virtual) memory.\n";
44 output += "panic - Cause a system panic.\n";
45 output += "quit - Leave and continue execution.\n";
46 output += "step - Single step and reenter the debugger.\n";
47 output += "syscall - Trace syscall execution times (stubbed).\n";
48 output += "threads - Inspect what each thread is doing.\n";
49 output += "trace - Graphical execution tracer.\n";
50 output += "locks - Show spinlock information.\n";
51 output += "mapping - Show V->P information for an effective addr.\n";
52 return true;
53}
bool execute(const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
void autocomplete(const HugeStaticString &input, HugeStaticString &output)