From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id SQBFCd3/VWoHiQcAWB0awg (envelope-from ) for ; Tue, 14 Jul 2026 05:22:37 -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=iWyrfqEY; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1F8D91E099; Tue, 14 Jul 2026 05:22:37 -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 3C34B1E099 for ; Tue, 14 Jul 2026 05:22:36 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 43ED24BA23DC for ; Tue, 14 Jul 2026 09:22:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43ED24BA23DC 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=iWyrfqEY Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by sourceware.org (Postfix) with ESMTPS id 9D1E54BA2E25 for ; Tue, 14 Jul 2026 09:21:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9D1E54BA2E25 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 9D1E54BA2E25 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=1784020916; cv=none; b=kXY5CDRVAK3cmgwSFEHPklMH7ce4o+gQne+trJsvBhPkCwW5nLyloE4oXKH5Kd9QRwAzLq/F91c2A9UvEBUSdjP0MKXXdIFB39+5Vg1NdQ3KRJe3RzedmXHgiCEhAwK1eNAhrLJgVLsrYguoM+91GtH2aP7+gHQdOU8M/lvI70E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784020916; c=relaxed/simple; bh=KEetUedT4fU2q+z8yuUWYsyW4dskBIVQ9Rc1PC5dwlM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=A8bd8dZPf9Eoa3hBGTGBgbpvRwORQq+HKENqbhau0HOnR9BuZjw3CNKHela9tCmj1P5cY3M7wf44OF/oWfAH2MAtUazX0nk+0yChoGFOfMTvXaHKtoPBBYb4Fq/EIMWmsNvRZE29L1guXzktBpbNcni4/z1E8X8lzXcFM8iELjs= 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=iWyrfqEY DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D1E54BA2E25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784020916; x=1815556916; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KEetUedT4fU2q+z8yuUWYsyW4dskBIVQ9Rc1PC5dwlM=; b=iWyrfqEYD3HDNsk8B33cYjCDqqUlmJqP00fmg4ZbD01Kk1zKA1tLQSGw imNyRXBGWhD+NxoCGO27jvbk5UtqO+3zA/xpBh5PJELD/tVmNqnwBHF+i QszIf+CCqD43gjNuYf3y+h0y8FRP5Had297pwYnjaZrSaMjPVPjGsfDxp siDIjiJjcfZUgCuWU1YKVXonlapKClXycNxsUiP9KuNXU35yNxKnYyA90 YFjdcNsw88DUTSdhBYhaQXU7qQVO07LblLxaL6rBbXUXUFsWu+3RrULng uEHFBTohmhPjlgaSnq6W0r5nA8lnKp1Kn1bV20HWgGGI+W7jQyI51ew8y g==; X-CSE-ConnectionGUID: 7eY8AqY9TKGKbzlpIIB8RQ== X-CSE-MsgGUID: +4e4obaRS9m/dYh0eB83Sw== X-IronPort-AV: E=McAfee;i="6800,10657,11846"; a="95284583" X-IronPort-AV: E=Sophos;i="6.25,163,1779174000"; d="scan'208";a="95284583" 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:54 -0700 X-CSE-ConnectionGUID: s4AAG+6NQqu4u6pBAMse2A== X-CSE-MsgGUID: CZHy5GldS3+csZJr4p2Iqg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,163,1779174000"; d="scan'208";a="254679385" 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:53 -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 01/11] gdb, record: fix assertion when remote target is set to non-stop Date: Tue, 14 Jul 2026 11:21:18 +0200 Message-ID: <20260714092128.12941-2-mohamed.bouhaouel@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260714092128.12941-1-mohamed.bouhaouel@intel.com> References: <20260714092128.12941-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 aa451c05a5d..6607dc4c1ba 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -1298,7 +1298,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