From patchwork Tue Nov 6 11:05:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luc Michel X-Patchwork-Id: 993614 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=greensocs.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=greensocs.com header.i=@greensocs.com header.b="2xclOS3q"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=greensocs.com header.i=@greensocs.com header.b="7fLbtjKN"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=greensocs.com header.i=@greensocs.com header.b="7fLbtjKN"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42q6Nt4Ncqz9sDL for ; Tue, 6 Nov 2018 22:13:34 +1100 (AEDT) Received: from localhost ([::1]:40335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJzIa-00068i-4R for incoming@patchwork.ozlabs.org; Tue, 06 Nov 2018 06:13:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJzC0-0006fp-GV for qemu-devel@nongnu.org; Tue, 06 Nov 2018 06:06:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJzBz-0001a4-MX for qemu-devel@nongnu.org; Tue, 06 Nov 2018 06:06:44 -0500 Received: from greensocs.com ([193.104.36.180]:46762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJzBs-0000ra-Q1; Tue, 06 Nov 2018 06:06:37 -0500 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 29E0F5C026C; Tue, 6 Nov 2018 12:06:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1541502376; bh=Th2MJHUdNYEyzy14m2vDNx88f11TUXsyKWgcqpJpXlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=2xclOS3qyEmApezL77MjwVe1yh+hx9Gtt1nWqCBO6vPd7nFLnjjKkRhzJUA2sknbd i+Ix+i56IAiGXiMMPcE4nBN51rNGTAUE0Njbk/GvPSyrQxlU9goiPfDLoBMAiibHSj cnMB0TjeWBYrv70vPIhw7FVZY4dluPeT10cux7zI= 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=7fLbtjKN; dkim=pass (1024-bit key) header.d=greensocs.com header.b=7fLbtjKN 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 ejPYYCtokP3r; Tue, 6 Nov 2018 12:06:15 +0100 (CET) Received: by greensocs.com (Postfix, from userid 998) id C168C5C0276; Tue, 6 Nov 2018 12:06:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1541502371; bh=Th2MJHUdNYEyzy14m2vDNx88f11TUXsyKWgcqpJpXlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=7fLbtjKNRjzI4BaglFHoezCUqwSK4xfeKuADv+I0dBhmdTW58UIXPzYDux06U+WS3 +WZEqD4lVzvMmgMZ+Sraa31053XAVxv7bjbuMLyfVyqx/eWM+O2ab8p6vXotW7XP7X UwVqogk2prIjjBt7v2UgdOMBBt64kYJbtf2ZnEmc= 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 558CA5C024B; Tue, 6 Nov 2018 12:06:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1541502371; bh=Th2MJHUdNYEyzy14m2vDNx88f11TUXsyKWgcqpJpXlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=7fLbtjKNRjzI4BaglFHoezCUqwSK4xfeKuADv+I0dBhmdTW58UIXPzYDux06U+WS3 +WZEqD4lVzvMmgMZ+Sraa31053XAVxv7bjbuMLyfVyqx/eWM+O2ab8p6vXotW7XP7X UwVqogk2prIjjBt7v2UgdOMBBt64kYJbtf2ZnEmc= From: Luc Michel To: qemu-devel@nongnu.org Date: Tue, 6 Nov 2018 12:05:47 +0100 Message-Id: <20181106110548.4209-16-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [PATCH v4 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_Mathieu-Daud=C3=A9?= , saipava@xilinx.com, edgari@xilinx.com, qemu-arm@nongnu.org, Luc Michel Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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é Acked-by: Alistair Francis --- gdbstub.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index c662ada6ff..93a7c956c2 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1721,10 +1721,16 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf) snprintf(buf, sizeof(buf), "PacketSize=%x", MAX_PACKET_LENGTH); cc = CPU_GET_CLASS(first_cpu); if (cc->gdb_core_xml_file != NULL) { pstrcat(buf, sizeof(buf), ";qXfer:features:read+"); } + + if (strstr(p, "multiprocess+")) { + s->multiprocess = true; + } + pstrcat(buf, sizeof(buf), ";multiprocess+"); + put_packet(s, buf); break; } if (strncmp(p, "Xfer:features:read:", 19) == 0) { const char *xml;