[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v4 15/16] gdbstub: add multiprocess extension support
From: |
Luc Michel |
Subject: |
[Qemu-arm] [PATCH v4 15/16] gdbstub: add multiprocess extension support |
Date: |
Tue, 6 Nov 2018 12:05:47 +0100 |
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>
---
gdbstub.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gdbstub.c b/gdbstub.c
index c662ada6ff..93a7c956c2 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1721,10 +1721,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;
--
2.19.1
- Re: [Qemu-arm] [Qemu-devel] [PATCH v4 01/16] hw/cpu: introduce CPU clusters, (continued)
[Qemu-arm] [PATCH v4 02/16] gdbstub: introduce GDB processes, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 10/16] gdbstub: add multiprocess support to 'D' packets, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 04/16] gdbstub: add multiprocess support to 'H' and 'T' packets, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 06/16] gdbstub: add multiprocess support to 'sC' packets, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 08/16] gdbstub: add multiprocess support to Xfer:features:read:, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 13/16] gdbstub: processes initialization on new peer connection, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 12/16] gdbstub: add support for vAttach packets, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 11/16] gdbstub: add support for extended mode packet, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 15/16] gdbstub: add multiprocess extension support,
Luc Michel <=
[Qemu-arm] [PATCH v4 16/16] arm/xlnx-zynqmp: put APUs and RPUs in separate CPU clusters, Luc Michel, 2018/11/06
[Qemu-arm] [PATCH v4 14/16] gdbstub: gdb_set_stop_cpu: ignore request when process is not attached, Luc Michel, 2018/11/06
Re: [Qemu-arm] [Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension, no-reply, 2018/11/06
Re: [Qemu-arm] [Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension, no-reply, 2018/11/07
Re: [Qemu-arm] [Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension, no-reply, 2018/11/08
Re: [Qemu-arm] [Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension, Philippe Mathieu-Daudé, 2018/11/08
Re: [Qemu-arm] [Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension, no-reply, 2018/11/09