From patchwork Sat Sep 1 12:46:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Michel X-Patchwork-Id: 10584713 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 61515139B for ; Sat, 1 Sep 2018 12:49:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47A8A2A8DC for ; Sat, 1 Sep 2018 12:49:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AEE22A8FC; Sat, 1 Sep 2018 12:49:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 384B32A8DC for ; Sat, 1 Sep 2018 12:49:31 +0000 (UTC) Received: from localhost ([::1]:37043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw5LF-0007lo-R3 for patchwork-qemu-devel@patchwork.kernel.org; Sat, 01 Sep 2018 08:49:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw5JD-0004r1-UX for qemu-devel@nongnu.org; Sat, 01 Sep 2018 08:47:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw5JC-0007oN-Nw for qemu-devel@nongnu.org; Sat, 01 Sep 2018 08:47:23 -0400 Received: from greensocs.com ([193.104.36.180]:40641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw5J6-0007kH-OT; Sat, 01 Sep 2018 08:47:16 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 1D5C3DFFE4; Sat, 1 Sep 2018 14:47:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1535806031; bh=bmU4wXE3iudYwFRME/0Zuv4lzXHnqtQIFY1W31Fc69k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=i+PtOHcmZTqBzegY1nuaG0x8pO3HrjBDi2mB46tsXYxOjjaDPfp9ImNH67VGMSYw1 sx5j687Isp97rAT3GtKdYUvSvJUBPNLFt5Sd1RpJ+O54/mcPOZOp9NIS62+/Yj7ypj DDEEDbdnzot04fbnD+kQiTO8woQRjBD1j7v8RC4w= 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=MhlVda1I; dkim=pass (1024-bit key) header.d=greensocs.com header.b=BuumqQyo 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 eGld-iZN1yMQ; Sat, 1 Sep 2018 14:47:10 +0200 (CEST) Received: by greensocs.com (Postfix, from userid 998) id 64315521A9F; Sat, 1 Sep 2018 14:47:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1535806030; bh=bmU4wXE3iudYwFRME/0Zuv4lzXHnqtQIFY1W31Fc69k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MhlVda1I61UrtfDJTxZ6Qo+MwaSn7kdtt8nBy+cXmBO4lfR+h0FV7WlFji5jUcdFD /uX8epcEnxTrwa+jBVG0378OJUmu4EceN8hjmC842862dLyI31fOFovi7Ua5xCGo8J kO4CE+hsEOPlWff6tNYsfXllXlrI2cmtrH3jbhNY= Received: from michell-laptop.home.lmichel.fr (LFbn-LYO-1-488-36.w2-7.abo.wanadoo.fr [2.7.77.36]) (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 22F4E521AB0; Sat, 1 Sep 2018 14:47:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1535806029; bh=bmU4wXE3iudYwFRME/0Zuv4lzXHnqtQIFY1W31Fc69k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BuumqQyokVo3TxLs1sS2fqIpJget3tIVY3lPPA5s5/bjQtpsBr+JAykClAMxaNEm5 Wq4wUzV6c74sRG/YR60C629NoSqnB2+7LYcQHj6dDWEBeviHbec7Jfp7MTClO68nI7 fHuBXqsWZyN/lVf+YxrLoG635F6Hpqrve/BjogZ0= From: Luc Michel To: qemu-devel@nongnu.org Date: Sat, 1 Sep 2018 14:46:34 +0200 Message-Id: <20180901124639.19735-11-luc.michel@greensocs.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180901124639.19735-1-luc.michel@greensocs.com> References: <20180901124639.19735-1-luc.michel@greensocs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [PATCH 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, saipava@xilinx.com, edgari@xilinx.com, qemu-arm@nongnu.org, Luc Michel Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 af8864e251..4bed0a85f3 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1281,10 +1281,13 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf) trace_gdbstub_io_command(line_buf); p = line_buf; ch = *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, get_thread_id(s, s->c_cpu, thread_id, sizeof(thread_id))); put_packet(s, buf);