[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 14/15] gdbstub: add multiprocess extension support
From: |
Luc Michel |
Subject: |
[Qemu-devel] [PATCH 14/15] gdbstub: add multiprocess extension support |
Date: |
Sat, 1 Sep 2018 14:46:38 +0200 |
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>
---
gdbstub.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gdbstub.c b/gdbstub.c
index 6a55bf2785..d249803c8e 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1688,15 +1688,19 @@ static int gdb_handle_packet(GDBState *s, const char
*line_buf)
put_packet(s, "OK");
break;
}
#endif /* !CONFIG_USER_ONLY */
if (is_query_packet(p, "Supported", ':')) {
+ if (strstr(p, "multiprocess+")) {
+ s->multiprocess = true;
+ }
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+");
}
+ pstrcat(buf, sizeof(buf), ";multiprocess+");
put_packet(s, buf);
break;
}
if (strncmp(p, "Xfer:features:read:", 19) == 0) {
const char *xml;
--
2.18.0
- Re: [Qemu-devel] [PATCH 02/15] gdbstub: add multiprocess support to '?' packets, (continued)
- [Qemu-devel] [PATCH 03/15] gdbstub: add multiprocess support to 'H' and 'T' packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 01/15] gdbstub: introduce GDB processes, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 12/15] gdbstub: processes initialization on new peer connection, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 06/15] gdbstub: add multiprocess support to (f|s)ThreadInfo and ThreadExtraInfo, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 09/15] gdbstub: add multiprocess support to 'D' packets, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 15/15] arm/xlnx-zynqmp: put APUs and RPUs in separate GDB groups, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 13/15] gdbstub: gdb_set_stop_cpu: ignore request when process is not attached, Luc Michel, 2018/09/01
- [Qemu-devel] [PATCH 14/15] gdbstub: add multiprocess extension support,
Luc Michel <=