|
From: | Alistair |
Subject: | Re: [Qemu-arm] [Qemu-devel] [PATCH v3 15/16] gdbstub: add multiprocess extension support |
Date: | Wed, 31 Oct 2018 16:51:03 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
On 10/26/18 1:16 AM, Luc Michel wrote:
Add multiprocess extension support by enabling multiprocess mode when the peer requests it, and by replying that we actually support it in the qSupported reply packet. Signed-off-by: Luc Michel <address@hidden> Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Acked-by: Alistair Francis <address@hidden> Alistair
--- gdbstub.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index 09480df2bf..a1b63de34b 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1718,10 +1718,16 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf) snprintf(buf, sizeof(buf), "PacketSize=%x", MAX_PACKET_LENGTH); cc = CPU_GET_CLASS(first_cpu); if (cc->gdb_core_xml_file != NULL) { pstrcat(buf, sizeof(buf), ";qXfer:features:read+"); } + + if (strstr(p, "multiprocess+")) { + s->multiprocess = true; + } + pstrcat(buf, sizeof(buf), ";multiprocess+"); + put_packet(s, buf); break; } if (strncmp(p, "Xfer:features:read:", 19) == 0) { const char *xml;
[Prev in Thread] | Current Thread | [Next in Thread] |