From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gHcTAKwmVmp2vAcAWB0awg (envelope-from ) for ; Tue, 14 Jul 2026 08:08:12 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=BX6dSFEE; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E31E31E09E; Tue, 14 Jul 2026 08:08:11 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id BA31D1E033 for ; Tue, 14 Jul 2026 08:08:10 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 267A84BA23C4 for ; Tue, 14 Jul 2026 12:08:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 267A84BA23C4 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=BX6dSFEE Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id E72EA4BA2E10 for ; Tue, 14 Jul 2026 12:07:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E72EA4BA2E10 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E72EA4BA2E10 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784030866; cv=none; b=vOO7ESJa5EOfxcT1b0bznzHzJ7eLwwBMEolw6PxnIwH1MWEbfQM9SumPkSQsC1SdO9l5bVsZY/kdOKMOX2HcOQXQFs2AHKF0azVSKwWLpg+LgPkqtL3P8gDBjvgpAhV6Q65anLahxSvO9lhC6ANgOZ+/XSKepDzPZuE0sVnj+xw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784030866; c=relaxed/simple; bh=Dm+2sdfhKalGuzJoFpACS3TmmPp4HbJ7R0Ohxl8oCko=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=WAmMYnTVdn2cKvrMw2aHwirhQwbOZLoYM9Ct7mZY95SZuCsgmDIqRVj0vF4Mnq2+D2JEDpLS/AdcV7IVQyI0TRhr5vy4E7EcMkJvfTEQRDNakc2dU4FCWmLJ1sdHL9MKuLrF8jOitikmK85iWbMdZXHllHyTFr+4V8J5FUeGn+E= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=BX6dSFEE DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E72EA4BA2E10 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wjbvM-00012T-Oz; Tue, 14 Jul 2026 08:07:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/14NLZ77+OKMhu9BjjQnoa5fSEcJrK1vTgCMYjXZYtg=; b=BX6dSFEE1Ioi ok1AjrnExaNUCILgs/J+asMv6OAs84LcajHiw89aGB7fLSFe/PEUS81kcVNqHEKD5bNxs3RcC0M42 R33JoViznRYSwHyrzYPZ9bUMolf/p6cnfOpIOq0r2Z27qv6RQ0yeK/FU3edwg7RYHbKivvBnALNxL zrUFD0IUmIsLf4AVgnVUKbojwqXOqhmIiZGgRzhVve236dBhXAOtWJcClAFeTgCZgoS+MDABp3vUr KZc1mUZUDNk+pSojiLXenVrl5cOSWlhb2A+f1d7s+uQ9lkMa+Vjx2emk7zvxLKB483aPZ0rmhEOIk RIYaNboK003vOxALdooxYA==; Date: Tue, 14 Jul 2026 15:07:42 +0300 Message-Id: <86ech5g4fl.fsf@gnu.org> From: Eli Zaretskii To: Mohamed Bouhaouel Cc: gdb-patches@sourceware.org, markus.t.metzger@intel.com, stephan.rohr@intel.com, aburgess@redhat.com, pedro@palves.net In-Reply-To: <20260714092128.12941-12-mohamed.bouhaouel@intel.com> (message from Mohamed Bouhaouel on Tue, 14 Jul 2026 11:21:28 +0200) Subject: Re: [PATCH v4 11/11] gdb, gdbserver: add AlwaysNonStop remote protocol extension References: <20260714092128.12941-1-mohamed.bouhaouel@intel.com> <20260714092128.12941-12-mohamed.bouhaouel@intel.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org > From: Mohamed Bouhaouel > Cc: markus.t.metzger@intel.com, > stephan.rohr@intel.com, > eliz@gnu.org, > aburgess@redhat.com, > pedro@palves.net > Date: Tue, 14 Jul 2026 11:21:28 +0200 > > From: "Bouhaouel, Mohamed" > > Add a new RSP extension allowing remote stubs to declare that a target > prefers to operate in non-stop mode. > > When a stub advertises "AlwaysNonStop+" in its qSupported response: > > * The stub automatically initializes to non-stop mode. > * GDB will operate the stub in non-stop mode (with default settings). > * The stub may reject QNonStop:0 requests with descriptive error > messages. > * GDB allows connection even if 'maint set target-non-stop off' is set, > but lets the stub decide whether to accept mode switches. > > Additionally, gdbserver now accepts --enable-packet=PACKET to enable > specific remote protocol packets or extensions at startup. Currently > this supports the 'AlwaysNonStop' extension. > > Reviewed-By: Eli Zaretskii > --- > gdb/NEWS | 13 +++ > gdb/doc/gdb.texinfo | 46 ++++++++++- > gdb/remote.c | 21 +++++ > .../gdb.server/enable-always-non-stop.exp | 56 +++++++++++++ > gdbserver/server.cc | 79 +++++++++++++++++-- > gdbserver/server.h | 2 + > gdbserver/target.cc | 6 ++ > gdbserver/target.h | 6 ++ > 8 files changed, 223 insertions(+), 6 deletions(-) > create mode 100644 gdb/testsuite/gdb.server/enable-always-non-stop.exp Thanks, the documentation parts are okay. Reviewed-By: Eli Zaretskii