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>
This commit is contained in:
Christian Eggers 2014-02-03 21:12:49 +01:00 committed by Spencer Oliver
parent d36889e692
commit d0507207ab
1 changed files with 1 additions and 1 deletions

View File

@ -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) {