diff options
author | Christian Eggers <ceggers@gmx.de> | 2014-02-03 21:12:49 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-03-04 20:15:03 +0000 |
commit | d0507207ab91153622a053795336cce232cb3be9 (patch) | |
tree | 18f285a9c9be245d96c0b353c21572bc15695ad4 /src/rtos | |
parent | d36889e692788d4dc4acabd073d57f4a178e3172 (diff) | |
download | riscv-openocd-d0507207ab91153622a053795336cce232cb3be9.zip riscv-openocd-d0507207ab91153622a053795336cce232cb3be9.tar.gz riscv-openocd-d0507207ab91153622a053795336cce232cb3be9.tar.bz2 |
gdb-server/rtos: Send correct answer to "qfThreadInfo" packet
Even if no RTOS is configured, "qfThreadInfo" must be answered with "l"
instead of "". Otherwise GDB will switch to the older thread packet ("qL"),
which is not supported by OpenOCD.
Change-Id: Iead045bdf8268bac2378c8f70829b17c37834e44
Signed-off-by: Christian Eggers <ceggers@gmx.de>
Reviewed-on: http://openocd.zylin.com/1925
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/rtos')
-rw-r--r-- | src/rtos/rtos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 0082ced..e9a17ea 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -344,7 +344,7 @@ int rtos_thread_packet(struct connection *connection, char *packet, int packet_s free(out_str); } } else - gdb_put_packet(connection, "", 0); + gdb_put_packet(connection, "l", 1); return ERROR_OK; } else if (strncmp(packet, "qsThreadInfo", 12) == 0) { |