From nobody Thu Nov 6 10:36:48 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 (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1540542679199969.3380446154101; Fri, 26 Oct 2018 01:31:19 -0700 (PDT) Received: from localhost ([::1]:58809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFxWQ-00047l-MF for importer@patchew.org; Fri, 26 Oct 2018 04:31:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFxUD-0000gX-4J for qemu-devel@nongnu.org; Fri, 26 Oct 2018 04:28:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFxJY-0004yG-H6 for qemu-devel@nongnu.org; Fri, 26 Oct 2018 04:17:53 -0400 Received: from greensocs.com ([193.104.36.180]:45415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFxJX-0004nb-1o; Fri, 26 Oct 2018 04:17:51 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id AD07D441B50; Fri, 26 Oct 2018 10:17:21 +0200 (CEST) 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 PabWieQPEDVJ; Fri, 26 Oct 2018 10:17:21 +0200 (CEST) Received: by greensocs.com (Postfix, from userid 998) id 50633441B4E; Fri, 26 Oct 2018 10:17:19 +0200 (CEST) Received: from michell-laptop.home.lmichel.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 CC187441B47; Fri, 26 Oct 2018 10:17:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1540541841; bh=dfLZPGnN7TiC869jTmK6DB7RFN22ebNE4iK7hrEv7XY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bNZUvPHc1ah3zN06p9cAJ9591A0gyTfA5dltxL3aT7xNQzwWAJByyExjiCY9+J3fr y17U3SSZBWUHl8r1BOvWUUd0rpjfin6yalLDsEL/YdLOUuUl7Wsunl4/OB0WkKlU7I 8BBtiHvAF5imDSaBld08nWO8N8HAxdRnHNBBYWrs= 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=7VV7M8cd; dkim=pass (1024-bit key) header.d=greensocs.com header.b=7VV7M8cd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1540541839; bh=dfLZPGnN7TiC869jTmK6DB7RFN22ebNE4iK7hrEv7XY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=7VV7M8cdbaU3iq4U42RfG6bQ1av8p5xoNWyZoYcVdjkiZUM4glP8R3fxcCApeODra odRPqiDxSr6o18udwULB/SDAzg8R/WSjD1u8w7c5+Hlb+7MA7C8rRvBfkdr7rCUhWr w9vC4G0HbiABERlcj75pIHPp8PpTKoHF0PQkeGZE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1540541839; bh=dfLZPGnN7TiC869jTmK6DB7RFN22ebNE4iK7hrEv7XY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=7VV7M8cdbaU3iq4U42RfG6bQ1av8p5xoNWyZoYcVdjkiZUM4glP8R3fxcCApeODra odRPqiDxSr6o18udwULB/SDAzg8R/WSjD1u8w7c5+Hlb+7MA7C8rRvBfkdr7rCUhWr w9vC4G0HbiABERlcj75pIHPp8PpTKoHF0PQkeGZE= From: Luc Michel To: qemu-devel@nongnu.org Date: Fri, 26 Oct 2018 10:16:52 +0200 Message-Id: <20181026081653.24602-16-luc.michel@greensocs.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181026081653.24602-1-luc.michel@greensocs.com> References: <20181026081653.24602-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 v3 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 --- 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 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