From 398c292e97b5a3309fd1114988e1afdb31d0083c Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Tue, 12 Oct 2010 10:02:55 +0100 Subject: [PATCH] gdb: Adds the 'reset' command Apparently needed for compatibility with AVRStudio debugger Signed-off-by: Michel Pollet --- simavr/sim/sim_gdb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simavr/sim/sim_gdb.c b/simavr/sim/sim_gdb.c index 33d924f..f2d46ff 100644 --- a/simavr/sim/sim_gdb.c +++ b/simavr/sim/sim_gdb.c @@ -251,6 +251,10 @@ static void gdb_handle_command(avr_gdb_t * g, char * cmd) case 's': { // step avr->state = cpu_Step; } break; + case 'r': { // deprecated, suggested for AVRStudio compatibility + avr->state = cpu_StepDone; + avr_reset(avr); + } break; case 'Z': // set clear break/watchpoint case 'z': { uint32_t kind, addr, len; -- 2.39.5