gdb: add support for qfThreadInfo

Sends back an empty thread list, which seems to silence Eclipse CDT.
There is probably no need to implement qsThreadInfo and qL.
This commit is contained in:
Tamas TEVESZ 2011-11-27 22:29:27 +01:00 committed by Daniel Beer
parent 6060b8d1b0
commit 66368cef12
1 changed files with 7 additions and 0 deletions

View File

@ -364,6 +364,11 @@ static int restart_program(struct gdb_data *data)
return gdb_send(data, "OK");
}
static int gdb_send_empty_threadlist(struct gdb_data *data)
{
return gdb_send(data, "<?xml version=\"1.0\"?><threads></threads>");
}
static int gdb_send_supported(struct gdb_data *data)
{
gdb_packet_start(data);
@ -400,6 +405,8 @@ static int process_gdb_command(struct gdb_data *data, char *buf)
return monitor_command(data, buf + 6);
if (!strncmp(buf, "qSupported", 10))
return gdb_send_supported(data);
if (!strncmp(buf, "qfThreadInfo", 12))
return gdb_send_empty_threadlist(data);
break;
case 'm': /* Read memory */