From nobody Thu Nov 6 18:22:55 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1542275198503849.5587608060117; Thu, 15 Nov 2018 01:46:38 -0800 (PST) Received: from localhost ([::1]:37675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNEEP-0001Vb-8A for importer@patchew.org; Thu, 15 Nov 2018 04:46:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNEAo-0007Rc-Fk for qemu-devel@nongnu.org; Thu, 15 Nov 2018 04:42:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNEAn-0004oO-Ly for qemu-devel@nongnu.org; Thu, 15 Nov 2018 04:42:54 -0500 Received: from greensocs.com ([193.104.36.180]:41929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNEAk-0004bT-2v; Thu, 15 Nov 2018 04:42:50 -0500 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 36CD2441B57; Thu, 15 Nov 2018 10:42:20 +0100 (CET) Received: from greensocs.com ([127.0.0.1]) by localhost (gs-01.greensocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EyvazNl1m3le; Thu, 15 Nov 2018 10:42:19 +0100 (CET) Received: by greensocs.com (Postfix, from userid 998) id 6573D44325D; Thu, 15 Nov 2018 10:42:19 +0100 (CET) Received: from michell-laptop.hive.antfield.fr (lfbn-1-8165-82.w90-112.abo.wanadoo.fr [90.112.74.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: luc.michel@greensocs.com) by greensocs.com (Postfix) with ESMTPSA id E651144325E; Thu, 15 Nov 2018 10:42:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1542274940; bh=eTAQ3gyUIFB+pZwXAVSZtIdNbFbdyQOd/43CxMn9TWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=n1DtfkK3QIznDJ0azW0j04kyyXhvpJ6RqT3Kbla4INX8Ug+YmoDk2uWN4oduhPvsQ xGDGJaeOSfRltVEpwBYJbXY/Ty7YrNUtbZ4eHqWjPaNdOmnt7b/z/Sb3ZRaPBYgxta nUIbBz6V9P52zldTamS3jnyKBROelIS8UloPF0Wk= X-Virus-Scanned: amavisd-new at greensocs.com Authentication-Results: gs-01.greensocs.com (amavisd-new); dkim=pass (1024-bit key) header.d=greensocs.com header.b=OkXHKONa; dkim=pass (1024-bit key) header.d=greensocs.com header.b=OkXHKONa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1542274939; bh=eTAQ3gyUIFB+pZwXAVSZtIdNbFbdyQOd/43CxMn9TWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OkXHKONa42m+5+VrFoAVETRMV4C8TsIOYjIZi7uz7dPKsuULccU1g5R7yNr63C4ps mDy1obj47vqIJ2m33TctwaViRyTLPpPD28nDs9Yundyu+qb2RUUkmYkPkklEWfEWOc zrJamrxQUvmtFB/hoShf9CctAMFis1NFTMNajv0s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1542274939; bh=eTAQ3gyUIFB+pZwXAVSZtIdNbFbdyQOd/43CxMn9TWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OkXHKONa42m+5+VrFoAVETRMV4C8TsIOYjIZi7uz7dPKsuULccU1g5R7yNr63C4ps mDy1obj47vqIJ2m33TctwaViRyTLPpPD28nDs9Yundyu+qb2RUUkmYkPkklEWfEWOc zrJamrxQUvmtFB/hoShf9CctAMFis1NFTMNajv0s= From: Luc Michel To: qemu-devel@nongnu.org Date: Thu, 15 Nov 2018 10:42:06 +0100 Message-Id: <20181115094207.22846-16-luc.michel@greensocs.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181115094207.22846-1-luc.michel@greensocs.com> References: <20181115094207.22846-1-luc.michel@greensocs.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [PATCH v6 15/16] gdbstub: add multiprocess extension support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Eduardo Habkost , alistair@alistair23.me, mark.burton@greensocs.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , saipava@xilinx.com, edgari@xilinx.com, qemu-arm@nongnu.org, Luc Michel Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (found 2 invalid signatures) Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Alistair Francis Reviewed-by: Edgar E. Iglesias --- gdbstub.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index 89819a6a72..e0b844c040 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1721,10 +1721,16 @@ static int gdb_handle_packet(GDBState *s, const cha= r *line_buf) snprintf(buf, sizeof(buf), "PacketSize=3D%x", MAX_PACKET_LENGT= H); cc =3D CPU_GET_CLASS(first_cpu); if (cc->gdb_core_xml_file !=3D NULL) { pstrcat(buf, sizeof(buf), ";qXfer:features:read+"); } + + if (strstr(p, "multiprocess+")) { + s->multiprocess =3D true; + } + pstrcat(buf, sizeof(buf), ";multiprocess+"); + put_packet(s, buf); break; } if (strncmp(p, "Xfer:features:read:", 19) =3D=3D 0) { const char *xml; --=20 2.19.1