From 51ab5a0c8b1513e0bf2581173c569ec4505dde53 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Thu, 25 May 2017 18:31:38 -0700 Subject: [PATCH] Return 5 (SIGBREAK) not 2 (SIGINT) after a step GDB seems to just go off the rails if I return a SIGINT. --- src/rtos/riscv_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtos/riscv_debug.c b/src/rtos/riscv_debug.c index 0402eb905..dbd72383c 100644 --- a/src/rtos/riscv_debug.c +++ b/src/rtos/riscv_debug.c @@ -241,7 +241,7 @@ static int riscv_gdb_v_packet(struct connection *connection, const char *packet, riscv_set_rtos_hartid(target, threadid - 1); riscv_step_rtos_hart(target); - gdb_put_packet(connection, "S02", 3); + gdb_put_packet(connection, "S05", 3); return JIM_OK; }