commit 282fc014ab0b315a89563883334d9d164c4bf220
parent 085dfc2a176e6f1ebb172e9605b637791664750f
Author: Brian Swetland <swetland@frotz.net>
Date:   Mon, 13 Jul 2015 17:41:00 -0700
gdb-bridge: return reason 05 for all stop codes
This seems to significantly improve single stepping.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/gdb-bridge.c b/tools/gdb-bridge.c
@@ -588,7 +588,7 @@ void handle_command(struct gdbcnxn *gc, unsigned char *cmd) {
 	gdb_prologue(gc);
 	switch (cmd[0]) {
 	case '?':
-		gdb_puts(gc, "S00");
+		gdb_puts(gc, "S05");
 		gc->flags &= (~F_RUNNING);
 		swdp_core_halt();
 		gdb_update_threads(gc);
@@ -722,7 +722,7 @@ void handle_command(struct gdbcnxn *gc, unsigned char *cmd) {
 		swdp_core_halt();
 		gdb_update_threads(gc);
 		gc->flags &= (~F_RUNNING);
-		gdb_puts(gc, "S00");
+		gdb_puts(gc, "S05");
 		break;
 	// extended query and set commands
 	case 'q': 
@@ -824,7 +824,7 @@ void gdb_server(int fd) {
 					gc.flags &= (~F_RUNNING);
 					// todo: indicate specific halt reason
 					gdb_prologue(&gc);
-					gdb_puts(&gc, "S00");
+					gdb_puts(&gc, "S05");
 					gdb_epilogue(&gc);
 					gdb_update_threads(&gc);
 				}