From: Michel Pollet Date: Tue, 30 Jun 2020 16:34:33 +0000 (+0100) Subject: Tweaked spacing from PR X-Git-Tag: v1.7~21^2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=13b5c3336c1b9163f012467b233ac47973bd95a0;p=sx%2Fsimavr.git Tweaked spacing from PR --- 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");