From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4QiUGRvXKmqOswEAWB0awg (envelope-from ) for ; Thu, 11 Jun 2026 11:41:15 -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=IcAPkDHh; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 638241E070; Thu, 11 Jun 2026 11:41:15 -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 C828F1E070 for ; Thu, 11 Jun 2026 11:41:14 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 03CF94B99F44 for ; Thu, 11 Jun 2026 15:41:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03CF94B99F44 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=IcAPkDHh Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by sourceware.org (Postfix) with ESMTPS id A80F04BAE7DB for ; Thu, 11 Jun 2026 15:38:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A80F04BAE7DB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=tempfail smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A80F04BAE7DB Authentication-Results: sourceware.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781192295; cv=none; b=ZuAk+GsC1Nx5sXrawzOpL994uFsdkA9DWoilXpJLzHPOP8Vzk2IB7aD57sjRje4gVLUaKOcJKdLDvbmypTMp8TbMDpfEGmnrSyAPqu540SbQx5PIgPVEpNr3i1vvfMugYmMXKeOVIm0IuTEmKyObCplrUb7OplGGTwaJbN7Aydc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781192295; c=relaxed/simple; bh=UHxhUEH/HQeRer9eCMVm1Fa6ErysZcjJYs0m64CE8q4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nbX8pk35sekVjrmVJYgSy6VpE0OiBCbO3GqxirwEJPeQXVYMA9kf4i4yWdykc5Fe0ngE7VJxQOcvff5VURZiyCNMUsYLuQWVShnWF11g2SvHsPFR2hGcaXTv0eTKUR6T33qu1aTQqPGxb61zuNYnJGmPfzb9mgwnXwKZzcx23hg= 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=IcAPkDHh DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A80F04BAE7DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1781192295; x=1812728295; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UHxhUEH/HQeRer9eCMVm1Fa6ErysZcjJYs0m64CE8q4=; b=IcAPkDHhYFko5982aKJLWlBMJETkcycO6LuQBlS5LQKuZxkw8cnecdNw AIK+vRrkDrakJR5KX1haDvbEWGaLo0NutVSbYonTHJa7EPSo6vrSu3bBd 4Jeo+7bDRJX2vlM+XXj6dIQdwysOHvHJ80kvvjHRut+ZOrPUel9vZ00LR GOukRwL65f3DtrKWA3/qqKIgu5B6K1CQ1ZAEVQ/6q6mLt4uWCprJUotPF x2IMwhdopwISrKZpRhjEm0lo/HgHTyvGYaKlx2Nr628Y6dwVBt8HF+DTR R/H4p8kj3KZJW2O+tI5Jglx21SROTE9NKS74seRAgUwB8B9bR/l+PkKV9 g==; X-CSE-ConnectionGUID: Ze/PGhNaQFa2IG9izIix0w== X-CSE-MsgGUID: fNkYHU5qTbed8w8rf53rFQ== X-IronPort-AV: E=McAfee;i="6800,10657,11813"; a="99431358" X-IronPort-AV: E=Sophos;i="6.24,199,1774335600"; d="scan'208";a="99431358" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2026 08:38:05 -0700 X-CSE-ConnectionGUID: C8fUdEFHS3GRgl04jLGR1A== X-CSE-MsgGUID: sOm/zngfTVy4XOeHW14i8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,199,1774335600"; d="scan'208";a="244072971" Received: from womilian-mobl.ger.corp.intel.com (HELO localhost) ([10.245.82.28]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2026 08:38:03 -0700 From: Mohamed Bouhaouel To: gdb-patches@sourceware.org Cc: markus.t.metzger@intel.com, stephan.rohr@intel.com, aburgess@redhat.com, mohamed.bouhaouel@intel.com Subject: [PATCH v2 11/11] gdb, remote: implement always_non_stop_p for remote target Date: Thu, 11 Jun 2026 17:36:55 +0200 Message-ID: <20260611153702.3176-12-mohamed.bouhaouel@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260611153702.3176-11-mohamed.bouhaouel@intel.com> References: <20260611153702.3176-11-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 d66bfeb02de..14abd90c306 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