Commit 13b5c3336c1b9163f012467b233ac47973bd95a0
authorMichel Pollet <github.com@pollet.net>
Tue, 30 Jun 2020 16:34:33 +0000 (17:34 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 16:34:33 +0000 (17:34 +0100)
simavr/sim/sim_gdb.c

index b5f4bf1731faaaaf6c63a431c5d27e30e03038ff..5ea74a126902a177842d96aa24926e6019228612 100644 (file)
@@ -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");