From nobody Thu Nov 6 14:40:07 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 154150327975227.48059122309394; Tue, 6 Nov 2018 03:21:19 -0800 (PST) Received: from localhost ([::1]:40379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJzQ6-00077J-D9 for importer@patchew.org; Tue, 06 Nov 2018 06:21:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJzC9-0006mk-KM for qemu-devel@nongnu.org; Tue, 06 Nov 2018 06:06:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJzC4-0001uK-Jr for qemu-devel@nongnu.org; Tue, 06 Nov 2018 06:06:53 -0500 Received: from greensocs.com ([193.104.36.180]:46713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJzBq-0000or-SR; Tue, 06 Nov 2018 06:06:35 -0500 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 76CB65C024B; Tue, 6 Nov 2018 12:06:14 +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 bvTfVx2rzk9E; Tue, 6 Nov 2018 12:06:13 +0100 (CET) Received: by greensocs.com (Postfix, from userid 998) id A2931441B53; Tue, 6 Nov 2018 12:06:09 +0100 (CET) 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 3C4175C0279; Tue, 6 Nov 2018 12:06:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1541502374; bh=rBCCagqSrFOEU0nfuOIRvEJu5ZG6NSRyLpjqwKGgpUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=z83pVBvbA3gXyc1YMfUGwAsh3F5VgMH3CuG4a4J/9u1qi7RQoDMn5xgIGVR451Fta 3iooGDVmEjGRAmSjwkrHb3tmBJsDCV19SN3gCcDk3x0+hFbNABfJ6c6yFAx9mVPn5t UnLZhFJKxWN+SJIxLbt3IDEfBvl8lJOGbdpWq8TE= 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=YZ9lqt4A; dkim=pass (1024-bit key) header.d=greensocs.com header.b=YZ9lqt4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1541502369; bh=rBCCagqSrFOEU0nfuOIRvEJu5ZG6NSRyLpjqwKGgpUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YZ9lqt4ADQZdYIidB74hABQTsDBsVefcqAKWfBbK6DQnNyvS3wyh62vVlny1VHiQ+ a7h/z6AN2i5+asv7J4IncIhR/iBB1ctpT0n0oXPaKDH+JMVdl8/LhENvcC7ooydZAd GChHXBQRzIePmYKVJKJMn0fUhz3We/Es5Rl4+Fuk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1541502369; bh=rBCCagqSrFOEU0nfuOIRvEJu5ZG6NSRyLpjqwKGgpUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YZ9lqt4ADQZdYIidB74hABQTsDBsVefcqAKWfBbK6DQnNyvS3wyh62vVlny1VHiQ+ a7h/z6AN2i5+asv7J4IncIhR/iBB1ctpT0n0oXPaKDH+JMVdl8/LhENvcC7ooydZAd GChHXBQRzIePmYKVJKJMn0fUhz3We/Es5Rl4+Fuk= From: Luc Michel To: qemu-devel@nongnu.org Date: Tue, 6 Nov 2018 12:05:43 +0100 Message-Id: <20181106110548.4209-12-luc.michel@greensocs.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106110548.4209-1-luc.michel@greensocs.com> References: <20181106110548.4209-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 v4 11/16] gdbstub: add support for extended mode packet 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 support for the '!' extended mode packet. This is required for the multiprocess extension. Signed-off-by: Luc Michel --- gdbstub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index bd4895ac0a..4132227092 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1294,10 +1294,13 @@ static int gdb_handle_packet(GDBState *s, const cha= r *line_buf) trace_gdbstub_io_command(line_buf); =20 p =3D line_buf; ch =3D *p++; switch(ch) { + case '!': + put_packet(s, "OK"); + break; case '?': /* TODO: Make this return the correct value for user-mode. */ snprintf(buf, sizeof(buf), "T%02xthread:%s;", GDB_SIGNAL_TRAP, gdb_fmt_thread_id(s, s->c_cpu, thread_id, sizeof(thread_i= d))); put_packet(s, buf); --=20 2.19.1