20 #include "pedigree/kernel/debugger/commands/LookupCommand.h" 21 #include "pedigree/kernel/linker/KernelElf.h" 22 #include "pedigree/kernel/processor/types.h" 43 intptr_t n = input.intValue();
47 static_cast<const char *>(input));
49 output.append(addr, 16);
51 output +=
"No symbol corresponding to given name";
58 static_cast<uintptr_t>(n), &symStart);
61 output +=
"No symbol corresponding to given address.";
66 output +=
"' - symbol starts at ";
67 output.append(symStart, 16);
void autocomplete(const HugeStaticString &input, HugeStaticString &output)
const char * lookupSymbol(uintptr_t addr, uintptr_t *startAddr, T *symbolTable)
static KernelElf & instance()
bool execute(const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
uintptr_t globalLookupSymbol(const char *pName)