mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
Debugger: Add single step command
Also, this commit does some refactoring to the debugging loop logic.
This commit is contained in:
parent
c3faaeb9b9
commit
312559b131
2 changed files with 50 additions and 24 deletions
|
@ -168,6 +168,7 @@ void print_help()
|
|||
{
|
||||
printf("Options:\n"
|
||||
"cont - Continue execution\n"
|
||||
"s - step over the current instruction\n"
|
||||
"regs - Print registers\n"
|
||||
"dis [number of instructions] - Print disassembly\n"
|
||||
"bp <address/symbol> - Insert a breakpoint\n");
|
||||
|
@ -222,6 +223,9 @@ int main(int argc, char** argv)
|
|||
if (command == "cont") {
|
||||
return DebugSession::DebugDecision::Continue;
|
||||
}
|
||||
if (command == "s") {
|
||||
return DebugSession::DebugDecision::SingleStep;
|
||||
}
|
||||
|
||||
if (command == "regs") {
|
||||
handle_print_registers(regs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue