Revision 2dc766da gdbstub.c
b/gdbstub.c | ||
---|---|---|
1333 | 1333 |
GDB_CORE_XML); |
1334 | 1334 |
|
1335 | 1335 |
for (r = first_cpu->gdb_regs; r; r = r->next) { |
1336 |
strcat(target_xml, "<xi:include href=\"");
|
|
1337 |
strcat(target_xml, r->xml);
|
|
1338 |
strcat(target_xml, "\"/>");
|
|
1336 |
pstrcat(target_xml, sizeof(target_xml), "<xi:include href=\"");
|
|
1337 |
pstrcat(target_xml, sizeof(target_xml), r->xml);
|
|
1338 |
pstrcat(target_xml, sizeof(target_xml), "\"/>");
|
|
1339 | 1339 |
} |
1340 |
strcat(target_xml, "</target>");
|
|
1340 |
pstrcat(target_xml, sizeof(target_xml), "</target>");
|
|
1341 | 1341 |
} |
1342 | 1342 |
return target_xml; |
1343 | 1343 |
} |
... | ... | |
1838 | 1838 |
if (strncmp(p, "Supported", 9) == 0) { |
1839 | 1839 |
snprintf(buf, sizeof(buf), "PacketSize=%x", MAX_PACKET_LENGTH); |
1840 | 1840 |
#ifdef GDB_CORE_XML |
1841 |
strcat(buf, ";qXfer:features:read+");
|
|
1841 |
pstrcat(buf, sizeof(buf), ";qXfer:features:read+");
|
|
1842 | 1842 |
#endif |
1843 | 1843 |
put_packet(s, buf); |
1844 | 1844 |
break; |
Also available in: Unified diff