From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KUJFBaXVKmqOswEAWB0awg (envelope-from ) for ; Thu, 11 Jun 2026 11:35:01 -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=S4HT+PXn; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 117FF1E098; Thu, 11 Jun 2026 11:35:01 -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 A55E11E070 for ; Thu, 11 Jun 2026 11:35:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33FBF4BA23EC for ; Thu, 11 Jun 2026 15:35:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33FBF4BA23EC 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=S4HT+PXn Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by sourceware.org (Postfix) with ESMTPS id EE11D4BA23CA for ; Thu, 11 Jun 2026 15:33:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE11D4BA23CA 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 EE11D4BA23CA Authentication-Results: sourceware.org; arc=none smtp.remote-ip=198.175.65.15 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781192029; cv=none; b=BaEZjvlreUgat0v/L3DKXVXRoK5JhGcoXHom/2HdecG1ADaNtqjC9jD4tZVkwcxfmUMVkryf0+V9KWbHAp7FSDVu+UL3QfoSeOSklDpR5JuZI6y+EHPTwGMirGTIhUVfZAzHPaJPYzFUVL3n6RroQ2du2Go/yhFAV+BL4PGv78g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781192029; c=relaxed/simple; bh=JiNZZtU6+8KUkgJP2vWveQlrVl3e65kD5olQa2hm0aI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eSqu080vc9/H3OO+bmRi7oF47S2Acit6sZTFxDc8UP7EkGXO9K463LooYsjncTd77L0lQ+ba1qxB995Srf2W8KOrJiRWti4lbEk/bKnOkxlNo27Az0cMPD/3H0XXp5JFZ/zkWi+8fu1/8hI5a8oSQPp/oSrJUSFB5rreDocAcjw= 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=S4HT+PXn DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE11D4BA23CA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1781192029; x=1812728029; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JiNZZtU6+8KUkgJP2vWveQlrVl3e65kD5olQa2hm0aI=; b=S4HT+PXnG8ijGgtoegFxLVxIeRR9NbPKzsXld/K6K1PzSWKcQucY/J8x H9WsdcrrLIV4rLiJdrkRlasVNOlS9E4TxwqQ4NN0xa0rsrvxq/B0CyK7B WPt94BMPbjOkU3sXddCF5L8AxQKQb4eRbRaZa0GOefhldCnPCYZQH0AqE IekwPwzvFGkwbHYkuy75QwZDVpWpPkcb1PTkdFzO1Q4Me7mK0FTU2kq4w tzoeE7QjHQaWzKjDrTsCVS5x1bZhGkZLB+YrPRMkQ5HQt4z5ok5FbnZ03 eOHCcOfwY3hFL/QrJ6Tpwp4TZgp8tHnvd/Ki389OOQc2JKWozcfQl6evh Q==; X-CSE-ConnectionGUID: PK55IUcWTDChHzj3jPXTdw== X-CSE-MsgGUID: IQDyT6n6QYmoXUnOOnRyFg== X-IronPort-AV: E=McAfee;i="6800,10657,11813"; a="85637833" X-IronPort-AV: E=Sophos;i="6.24,199,1774335600"; d="scan'208";a="85637833" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2026 08:33:48 -0700 X-CSE-ConnectionGUID: S7+NrvyuRiOIDOiOs7ZPFw== X-CSE-MsgGUID: s3rYnQVUQSKX4EYZtAtuKA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,199,1774335600"; d="scan'208";a="246550977" Received: from womilian-mobl.ger.corp.intel.com (HELO localhost) ([10.245.82.28]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2026 08:33:46 -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 01/11] gdb, record: fix assertion when remote target is set to non-stop Date: Thu, 11 Jun 2026 17:32:21 +0200 Message-ID: <20260611153232.3011-2-mohamed.bouhaouel@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260611153232.3011-1-mohamed.bouhaouel@intel.com> References: <20260611153232.3011-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: Markus Metzger When forcing the remote target to non-stop via 'maint set target-non-stop on', reverse tests start failing with (gdb) .../gdb/remote.c:7561: internal-error: resume: Assertion `scope_ptid == inferior_ptid' failed. This is caused by the record-full target doing one additional step after receiving a single-step trap event. That additional step is done on the wait ptid instead of on the event ptid. Fix it. Reproducible when running gdb.reverse/*.exp, on native-gdbserver or native-extended-gdbserver with target-non-stop enabled. export GDBFLAGS="-iex \"maint set target-non-stop on\"" make check TESTS="gdb.reverse/*.exp" \ RUNTESTFLAGS="--target_board=native-gdbserver GDBFLAGS='$GDBFLAGS'" --- gdb/record-full.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/record-full.c b/gdb/record-full.c index bd3ea7ef962..b8d1e2d81a2 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -1290,7 +1290,8 @@ record_full_wait_1 (struct target_ops *ops, "Process record: record_full_wait " "issuing one more step in the " "target beneath\n"); - ops->beneath ()->resume (ptid, step, GDB_SIGNAL_0); + ops->beneath ()->resume (inferior_ptid, step, + GDB_SIGNAL_0); proc_target->commit_resumed_state = true; proc_target->commit_resumed (); proc_target->commit_resumed_state = false; -- 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