From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uUPSE2JcC2q97QUAWB0awg (envelope-from ) for ; Mon, 18 May 2026 14:37:22 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=JUADaCZ/; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4C6761E090; Mon, 18 May 2026 14:37:22 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 C4E831E024 for ; Mon, 18 May 2026 14:37:21 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 46EC94BB24F3 for ; Mon, 18 May 2026 18:37:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46EC94BB24F3 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=JUADaCZ/ Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by sourceware.org (Postfix) with ESMTPS id 8C80D4BB3B8E for ; Mon, 18 May 2026 18:36:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C80D4BB3B8E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8C80D4BB3B8E Authentication-Results: sourceware.org; arc=none smtp.remote-ip=192.198.163.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779129376; cv=none; b=mSC0JTvqmZGRXq4W9tE5gAGoTyVJS64m0jmCRzxNFvcHAt4CDieR8RafKlODl/fdKxGsEA79/2E/Y6aken6cm3RIi7s1s3w17ms8QRshtKWdvwVvkuLOKsPA4tE/VVET5Zh11h24koGqSYlkgSC1QL1WznriXZiC6DGKTgCUq/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779129376; c=relaxed/simple; bh=lFuP9C89uyiXj82I4TZfV84LJvxdNe5DKFFCLOEoXgw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AyqPG0M9FrNzJ0q14hf6ncAyOgGU0wSnyC5ZVDh/0LV61JGkrXWwzuZQ5n/ZkRkga0O2Qm0UmgD9aLThxYxK+DacXVOJbf8Zvs0F/xfwQmoeWNF4iE9lvQ3nAqJ2PhS9dOd6NhaLaZ2x33A/Gt07wWLg8KLRq0L5z9VMwFIaRIw= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=JUADaCZ/ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C80D4BB3B8E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779129377; x=1810665377; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lFuP9C89uyiXj82I4TZfV84LJvxdNe5DKFFCLOEoXgw=; b=JUADaCZ/Vx2+3EljJhohPoIQGx77R6ot7Ab1667yYYQFmPQcB0k7lo5m sFkjhodEPgEu/jsl0rgf0Ka0cKvnPGFR55H9z+QKJlivrnVejqTvCpnjV EDsn3OhffF8I0BRdNU2elFbDbtjFYQCB8Ec48n8j08LrKtOijHL+ywFjf p/wSwBFjzznn/XzhWxwKhH5kP6vbcLDKwi2KrSKOx0D/hyWsijVx88elK HRoX7YI2aaTNqZH1lV3VUXpIN0XxRjqQHFY3AMj2GGqRstzGLN/doxncl RmJULZhBSBIOFnQdObuulHeqNYYRi+X+kLt5qVxg/uj3X2PF/ga8uJpCV w==; X-CSE-ConnectionGUID: f0ipgtrUS2mOIdOGV8XXTw== X-CSE-MsgGUID: 7nBSAMAZRkGB/ZQbSao/wQ== X-IronPort-AV: E=McAfee;i="6800,10657,11790"; a="67522343" X-IronPort-AV: E=Sophos;i="6.23,242,1770624000"; d="scan'208";a="67522343" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2026 11:36:16 -0700 X-CSE-ConnectionGUID: q4s89B9tRPyKdY055nFgbw== X-CSE-MsgGUID: yxcNkU7fRU2PkrYQNcqfOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,242,1770624000"; d="scan'208";a="235257830" Received: from cwhite-mobl.ger.corp.intel.com (HELO localhost) ([10.245.114.180]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2026 11:36:14 -0700 From: Mohamed Bouhaouel To: gdb-patches@sourceware.org Cc: mohamed.bouhaouel@intel.com, stephan.rohr@intel.com, markus.t.metzger@intel.com Subject: [PATCH 11/11] gdb, remote: implement always_non_stop_p for remote target Date: Mon, 18 May 2026 20:33:07 +0200 Message-ID: <20260518183316.127043-12-mohamed.bouhaouel@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260518183316.127043-1-mohamed.bouhaouel@intel.com> References: <20260518183316.127043-1-mohamed.bouhaouel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: "Bouhaouel, Mohamed" Enable remote targets to natively operate in non-stop mode when they announce QNonStop packet support. This changes the default setting of 'maint set target-non-stop auto' from 'off' to 'on' for remote targets, aligning with the Linux native target. --- gdb/remote.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gdb/remote.c b/gdb/remote.c index 92fe518c6de..ecddb9c587d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1442,6 +1442,8 @@ class remote_target : public process_stratum_target void check_binary_download (CORE_ADDR addr); + bool always_non_stop_p () override; + target_xfer_status remote_write_bytes_aux (const char *header, CORE_ADDR memaddr, const gdb_byte *myaddr, @@ -9877,6 +9879,16 @@ remote_target::check_binary_download (CORE_ADDR addr) } } +/* Determine whether the remote target natively operates in non-stop mode. + Returns true if the target announced QNonStop support for asynchronous + execution and stop notifications. */ + +bool +remote_target::always_non_stop_p () +{ + return m_features.packet_support (PACKET_QNonStop) == PACKET_ENABLE; +} + /* Helper function to resize the payload in order to try to get a good alignment. We try to write an amount of data such that the next write will start on an address aligned on REMOTE_ALIGN_WRITES. */ -- 2.43.0 Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht Muenchen HRB 186928