aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rtos/riscv_debug.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rtos/riscv_debug.c b/src/rtos/riscv_debug.c
index bcfddbd..acb1114 100644
--- a/src/rtos/riscv_debug.c
+++ b/src/rtos/riscv_debug.c
@@ -134,6 +134,13 @@ static int riscv_gdb_thread_packet(struct connection *connection, const char *pa
return ERROR_OK;
}
+ if (strncmp(packet, "qC", 2) == 0) {
+ char rep_str[32];
+ strnprintf("QC%d", rtos->current_threadid);
+ gdb_put_packet(connection, rep_str, strlen(rep_str));
+ return ERROR_OK;
+ }
+
return GDB_THREAD_PACKET_NOT_CONSUMED;
case 'Q':