From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id do9nINn/VWoHiQcAWB0awg (envelope-from ) for ; Tue, 14 Jul 2026 05:22:33 -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=SG4dkvAx; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 65AFE1E09E; Tue, 14 Jul 2026 05:22:33 -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 A3F031E099 for ; Tue, 14 Jul 2026 05:22:31 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 116D84BA2E37 for ; Tue, 14 Jul 2026 09:22:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 116D84BA2E37 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=SG4dkvAx Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by sourceware.org (Postfix) with ESMTPS id 6E18E4BA5439 for ; Tue, 14 Jul 2026 09:21:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E18E4BA5439 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 6E18E4BA5439 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=192.198.163.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784020913; cv=none; b=Vl9spF8JwVeBnrN5W74OQMwTOhsW92cXbPx/pFqFHBp9C3u2YvJMDr9j+/6zVGyeQUnKXVCn9m4Lg6uH2nvKOS6COm8+tsohsznvxeZq7Xn+5ed0dryIdp6cronxhtms0ZW616dr8RXPRllVUuvCvBy29XxE8SOCtyq7nhk8tY4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784020913; c=relaxed/simple; bh=48vbIhonHkUL5NugpybLjvwyle+lp5o7CurDSpWtpk0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lDYbP9tC7KPJ1x6K5gumaNCWaPRTJWtJUWtjXw5On1FBsmY/1Viu5oZfPHGahb357AsKGTiJH/f4JY/mTugejdDC42zOiP/AFqYCvDPTW8gIiir0/GMLTSRgOsmRadewh4ZNxOakOy8XnC2W128RfHBL0e8I8JpRN5LxGVBaiHQ= 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=SG4dkvAx DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E18E4BA5439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784020914; x=1815556914; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=48vbIhonHkUL5NugpybLjvwyle+lp5o7CurDSpWtpk0=; b=SG4dkvAxqhT+W1fr3YxL1IonLKAHEWewu4Nprf73iLRhxPXK4tzpLkPM amCMM5AXKZM4gJhQmly8l+JbYpWmOHuF+nGyLeegHF8ABWagFE4IVeasI KvHM3aARwgG9/fBlM0B0Huqz5W1M4Tv3EuZ00pjAPYnt8oAeiHS9dsTN/ U8fqWgw0u4dp6zu84EIJLUer9j17OQdF6NU/IzccI0vZz8KEzQHCxOt4z oEOiyLu0+PYEWx70U6iqo4Pr3w8u6jZXYDTe/54eznUon/szL8iDTfy9g J0oH8hJKUWppfO01BCrgFR9t2nXvzF759tcvtQTFfvjLFcDh9dPn7wBhE Q==; X-CSE-ConnectionGUID: NKem+7oCQxe+FF/jcgP4Ww== X-CSE-MsgGUID: 9UAKJIXeTa2RXNTEXQvb4g== X-IronPort-AV: E=McAfee;i="6800,10657,11846"; a="95284570" X-IronPort-AV: E=Sophos;i="6.25,163,1779174000"; d="scan'208";a="95284570" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2026 02:21:50 -0700 X-CSE-ConnectionGUID: DI1EfZBVS5yfcV5IXpkeWg== X-CSE-MsgGUID: LXfaqPTUQASi21xCpl1t/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,163,1779174000"; d="scan'208";a="254679369" Received: from sguenant-mobl2.ger.corp.intel.com (HELO localhost) ([10.246.18.94]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2026 02:21:48 -0700 From: Mohamed Bouhaouel To: gdb-patches@sourceware.org Cc: markus.t.metzger@intel.com, stephan.rohr@intel.com, eliz@gnu.org, aburgess@redhat.com, pedro@palves.net Subject: [PATCH v4 00/11] Add AlwaysNonStop remote protocol extension Date: Tue, 14 Jul 2026 11:21:17 +0200 Message-ID: <20260714092128.12941-1-mohamed.bouhaouel@intel.com> X-Mailer: git-send-email 2.43.0 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" Hi, This series introduces the AlwaysNonStop extension, enabling remote stubs to declare preferable non-stop mode operation. When advertised, GDB defaults to non-stop mode. Attempts to disable it might be rejected by the stub with a descriptive error message. The V1/V2 approach raised 'O' and 'F' packet compatibility concerns in non-stop mode; this extension-based design addresses those risks (discussed with Pedro Alves). Key change from V3: Relaxed the extension from a must target-non-stop to a prefer target-non-stop. This will leave it the stub to decide if switching to all-stop mode is allowed. Additionally, added a gdbserver cli option, --enable-packet=PACKET, to enable specific remote protocol packets or extensions at startup. Used to add a test for the new 'AlwaysNonStop' extension. Link to previous versions: * V3 link: https://inbox.sourceware.org/gdb-patches/20260706121124.18784-1-mohamed.bouhaouel@intel.com/ * V2 link: https://inbox.sourceware.org/gdb-patches/20260611153232.3011-1-mohamed.bouhaouel@intel.com/ * V1 link: https://inbox.sourceware.org/gdb-patches/20260518183316.127043-1-mohamed.bouhaouel@intel.com/ Bouhaouel, Mohamed (8): gdb, remote: fix assertion on reconnect to non-stop target gdb, remote: fix async handler assertion on reconnect to non-stop target gdb, remote: fix "info program" after reconnect to non-stop target gdb, remote: fix crash when accessing removed events gdb, testsuite: handle async close in monitor-exit-quit.exp gdb, testsuite: update attach-deleted-exec.exp to handle async messages gdb, testsuite: add kfails for step-over-process-exit.exp gdb, gdbserver: add AlwaysNonStop remote protocol extension Markus Metzger (1): gdb, record: fix assertion when remote target is set to non-stop Rohr, Stephan (2): gdb, remote: fix ptid matching for process-wide stop events gdb, dap: fix DAP events if no thread is selected gdb/NEWS | 13 +++ gdb/doc/gdb.texinfo | 46 ++++++++++- gdb/python/lib/gdb/dap/events.py | 15 +++- gdb/record-full.c | 3 +- gdb/remote.c | 68 ++++++++++++---- .../gdb.base/attach-deleted-exec.exp | 59 ++++++++------ .../gdb.server/enable-always-non-stop.exp | 56 +++++++++++++ .../gdb.server/monitor-exit-quit.exp | 21 ++++- .../gdb.threads/step-over-process-exit.exp | 6 ++ gdbserver/server.cc | 79 +++++++++++++++++-- gdbserver/server.h | 2 + gdbserver/target.cc | 6 ++ gdbserver/target.h | 6 ++ 13 files changed, 328 insertions(+), 52 deletions(-) create mode 100644 gdb/testsuite/gdb.server/enable-always-non-stop.exp -- 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