From 13b5c3336c1b9163f012467b233ac47973bd95a0 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Tue, 30 Jun 2020 17:34:33 +0100 Subject: [PATCH] Tweaked spacing from PR --- simavr/sim/sim_gdb.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/simavr/sim/sim_gdb.c b/simavr/sim/sim_gdb.c index b5f4bf1..5ea74a1 100644 --- a/simavr/sim/sim_gdb.c +++ b/simavr/sim/sim_gdb.c @@ -350,10 +350,9 @@ gdb_handle_command( } } else if (strncmp(cmd, "Rcmd", 4) == 0) { // monitor command char * args = strchr(cmd, ','); - if (args != NULL) - { + if (args != NULL) { args++; - while(args != 0x00) { + while (args != 0x00) { printf("%s",args); if (strncmp(args, "7265736574", 10) == 0) { // reset matched avr->state = cpu_StepDone; @@ -364,10 +363,8 @@ gdb_handle_command( args += 8; } else if (strncmp(args, "20", 2) == 0) { // space matched args += 2; - } - else{ // no match - end + } else // no match - end break; - } } } gdb_send_reply(g, "OK"); -- 2.39.5