aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-05-25 18:31:38 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-05-25 18:31:58 -0700
commit51ab5a0c8b1513e0bf2581173c569ec4505dde53 (patch)
treefc6d170504f76ab9ee6571e9a72528be46c02618
parentf0969e7c71437dce8331b727baf550a6ef0a24c3 (diff)
downloadriscv-openocd-51ab5a0c8b1513e0bf2581173c569ec4505dde53.zip
riscv-openocd-51ab5a0c8b1513e0bf2581173c569ec4505dde53.tar.gz
riscv-openocd-51ab5a0c8b1513e0bf2581173c569ec4505dde53.tar.bz2
Return 5 (SIGBREAK) not 2 (SIGINT) after a step
GDB seems to just go off the rails if I return a SIGINT.
-rw-r--r--src/rtos/riscv_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/riscv_debug.c b/src/rtos/riscv_debug.c
index 0402eb9..dbd7238 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;
}