From nobody Wed Nov 5 23:46:41 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 1538395237129481.21040604011034; Mon, 1 Oct 2018 05:00:37 -0700 (PDT) Received: from localhost ([::1]:37811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6wsN-0004Xd-Ur for importer@patchew.org; Mon, 01 Oct 2018 08:00:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6wpT-0002R4-8W for qemu-devel@nongnu.org; Mon, 01 Oct 2018 07:57:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6wpQ-0005oB-PG for qemu-devel@nongnu.org; Mon, 01 Oct 2018 07:57:35 -0400 Received: from greensocs.com ([193.104.36.180]:40120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6wpM-0005ga-Jx; Mon, 01 Oct 2018 07:57:28 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 57F6F511C73; Mon, 1 Oct 2018 13:57:14 +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 Ktq2mU35kMaA; Mon, 1 Oct 2018 13:57:13 +0200 (CEST) Received: by greensocs.com (Postfix, from userid 998) id F0E13511C71; Mon, 1 Oct 2018 13:57:10 +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 7CF27511C59; Mon, 1 Oct 2018 13:57:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1538395034; bh=sGpdDHnh6UkEpab7HOOlprckQf+/+DmBBAJDYJ7oNXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ODoDAjvwk7yRfdPWRSdA35lCvt40g2kD52UCtiffhDH1CkJzONR4zp9SMzD0ddTsQ fkmWqAJ/F+zisHEAOV3J0e3UHcKETGtQRyFmrbCwIFisTw81dWA4xOah6fTeC/SSqR N/mr2oX2SnnZsbXdGHLEi9oBD1D8WEKuW5eVxb2c= 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=I5Fi/0n0; dkim=pass (1024-bit key) header.d=greensocs.com header.b=I5Fi/0n0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1538395030; bh=sGpdDHnh6UkEpab7HOOlprckQf+/+DmBBAJDYJ7oNXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=I5Fi/0n0fWy8A43hHgFNh/zJ+jNPhozWmosNy97lXL8Nccv3hFXk/ScySj8uB4z6l GSpH4jct18gq6Iv2ownW36MUKQ9drDQGd8ORjt0Pu5CUE+OXxHB5YvhRqzfL6p2F4T e45LaB9ZerfhHknhiJp/d8wnTC+RxPzsjALgWLRE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1538395030; bh=sGpdDHnh6UkEpab7HOOlprckQf+/+DmBBAJDYJ7oNXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=I5Fi/0n0fWy8A43hHgFNh/zJ+jNPhozWmosNy97lXL8Nccv3hFXk/ScySj8uB4z6l GSpH4jct18gq6Iv2ownW36MUKQ9drDQGd8ORjt0Pu5CUE+OXxHB5YvhRqzfL6p2F4T e45LaB9ZerfhHknhiJp/d8wnTC+RxPzsjALgWLRE= From: Luc Michel To: qemu-devel@nongnu.org Date: Mon, 1 Oct 2018 13:56:59 +0200 Message-Id: <20181001115704.701-11-luc.michel@greensocs.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181001115704.701-1-luc.michel@greensocs.com> References: <20181001115704.701-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 v2 10/15] 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 , 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) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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 299783b3b8..d372972dd3 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1280,10 +1280,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.0