Skip to content

Commit 13b5c33

Browse files
authored
Tweaked spacing from PR
1 parent 110aadf commit 13b5c33

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

simavr/sim/sim_gdb.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,9 @@ gdb_handle_command(
350350
}
351351
} else if (strncmp(cmd, "Rcmd", 4) == 0) { // monitor command
352352
char * args = strchr(cmd, ',');
353-
if (args != NULL)
354-
{
353+
if (args != NULL) {
355354
args++;
356-
while(args != 0x00) {
355+
while (args != 0x00) {
357356
printf("%s",args);
358357
if (strncmp(args, "7265736574", 10) == 0) { // reset matched
359358
avr->state = cpu_StepDone;
@@ -364,10 +363,8 @@ gdb_handle_command(
364363
args += 8;
365364
} else if (strncmp(args, "20", 2) == 0) { // space matched
366365
args += 2;
367-
}
368-
else{ // no match - end
366+
} else // no match - end
369367
break;
370-
}
371368
}
372369
}
373370
gdb_send_reply(g, "OK");

0 commit comments

Comments
 (0)