|
CS350 COS
COS
|
#include <stdbool.h>#include <stdint.h>#include <string.h>#include <sys/kassert.h>#include <sys/kdebug.h>#include "../dev/console.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_MAX_LINE 128 |
| #define | DEBUG_MAX_ARGS 16 |
| #define | PHELP(_cmd, _msg) kprintf("%-16s %s\n", _cmd, _msg) |
Functions | |
| void | Debug_PrintHex (const char *data, size_t length, off_t off, size_t limit) |
| uint64_t | Debug_GetValue (uintptr_t addr, int size, bool isSigned) |
| void | Debug_PrintSymbol (uintptr_t off, int strategy) |
| uint64_t | Debug_StrToInt (const char *s) |
| uint64_t | Debug_SymbolToInt (const char *s) |
| static void | Debug_Help (int argc, const char *argv[]) |
| REGISTER_DBGCMD (help, "Display the list of commands", Debug_Help) | |
| static void | Debug_Echo (int argc, const char *argv[]) |
| REGISTER_DBGCMD (echo, "Echo arguments", Debug_Echo) | |
| static void | Debug_Dump (int argc, const char *argv[]) |
| REGISTER_DBGCMD (dump, "Dump a region of memory", Debug_Dump) | |
| static void | Debug_Disasm (int argc, const char *argv[]) |
| REGISTER_DBGCMD (disasm, "Disassemble", Debug_Disasm) | |
| void | Debug_Prompt () |
Variables | |
| DebugCommand | __kdbgcmd_start [] |
| DebugCommand | __kdbgcmd_end [] |
| #define PHELP | ( | _cmd, | |
| _msg | |||
| ) | kprintf("%-16s %s\n", _cmd, _msg) |
|
static |
Definition at line 224 of file debug.c.
|
static |
Definition at line 205 of file debug.c.
|
static |
Definition at line 81 of file debug.c.
|
static |
Definition at line 172 of file debug.c.
Definition at line 30 of file debug.c.
| void Debug_PrintSymbol | ( | uintptr_t | off, |
| int | strategy | ||
| ) |
| void Debug_Prompt | ( | ) |
Definition at line 248 of file debug.c.
| uint64_t Debug_StrToInt | ( | const char * | s | ) |
Definition at line 124 of file debug.c.
| uint64_t Debug_SymbolToInt | ( | const char * | s | ) |
| REGISTER_DBGCMD | ( | disasm | , |
| "Disassemble" | , | ||
| Debug_Disasm | |||
| ) |
| REGISTER_DBGCMD | ( | dump | , |
| "Dump a region of memory" | , | ||
| Debug_Dump | |||
| ) |
| REGISTER_DBGCMD | ( | echo | , |
| "Echo arguments" | , | ||
| Debug_Echo | |||
| ) |
| REGISTER_DBGCMD | ( | help | , |
| "Display the list of commands" | , | ||
| Debug_Help | |||
| ) |
|
extern |
|
extern |