From: Christian Eggers Date: Mon, 3 Feb 2014 20:12:49 +0000 (+0100) Subject: gdb-server/rtos: Send correct answer to "qfThreadInfo" packet X-Git-Tag: v0.8.0-rc1~73 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=d0507207ab91153622a053795336cce232cb3be9 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 Reviewed-on: http://openocd.zylin.com/1925 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 0082ced1ff..e9a17ea214 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) {