20 #include "pedigree/kernel/debugger/commands/DumpCommand.h" 21 #include "pedigree/kernel/processor/state.h" 22 #include "pedigree/kernel/processor/types.h" 23 #include "pedigree/kernel/utilities/utility.h" 44 if (state.kernelMode() ==
true)
45 output +=
"kernel-mode\n";
47 output +=
"user-mode\n";
50 size_t curLength = output.length();
51 for (
size_t i = 0; i < state.getRegisterCount(); i++)
53 output += state.getRegisterName(i);
56 state.getRegister(i), 16, state.getRegisterSize(i) * 2,
'0');
58 if (i == (state.getRegisterCount() - 1))
62 size_t addLength = StringLength(state.getRegisterName(i + 1)) + 4 +
63 state.getRegisterSize(i + 1) * 2;
64 if ((addLength + (output.length() - curLength)) > 80)
67 curLength = output.length();
bool execute(const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
void autocomplete(const HugeStaticString &input, HugeStaticString &output)