From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WQ3lNgA932kKjxgAWB0awg (envelope-from ) for ; Wed, 15 Apr 2026 03:23:44 -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=MXqhGQME; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id CFC4E1E0C3; Wed, 15 Apr 2026 03:23:44 -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 804441E0B1 for ; Wed, 15 Apr 2026 03:23:43 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 8CFE74BA2E0A for ; Wed, 15 Apr 2026 07:23:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CFE74BA2E0A 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=MXqhGQME Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by sourceware.org (Postfix) with ESMTPS id B930A4BA2E09 for ; Wed, 15 Apr 2026 07:23:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B930A4BA2E09 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 B930A4BA2E09 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.8 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776237796; cv=none; b=OGXMj/bDhlBHs2r13Xw/q0FYZcQ/KbgSPOZ4r1GfoXazkePt+r83eDGVK8eOQ4pi9e8o5rH+RrUcgMwGz7QwAx2mCK+RJDsDlbmxR2gMSleKWagmdSRQP1wIPFJh1E+yu3KtFmXAzPQCIqYpua70ZSbUkYg3sBPW8/cz31y9sXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776237796; c=relaxed/simple; bh=G+uTJtV1h+OEeUfrgvA6Rd7dwc3AwD1Zy5swYzSSqkI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=dB9h/ff4RlMrB6Lb3Iae2/6fN53qihgnXlGcD8a5YdNBrBGvgedwbnB/g6svGO/6bP1XEsl4FBf+8OfEBZzhG7RVukDLw//wb+t/U3XGYe3r/aZ64CbKBWSwDRpsXJ31L1XYMgGAKhpFbxiO6K0sX1vzv7zN9pEAm7QhfEhL174= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B930A4BA2E09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776237796; x=1807773796; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=G+uTJtV1h+OEeUfrgvA6Rd7dwc3AwD1Zy5swYzSSqkI=; b=MXqhGQMEbHOwFQCFWtBiq9H95QvvMU18tl8w5Ptxf9t9hYhFUdhvO03+ W97DaL7aEp1ajPdRvo3AbJy/tiwUMUJJ8YX6plr5dLPQKCGTFFUTUolUL g1TAm9cOeZG/ECyfu81tcnezBfkLGhn7rSIFTjobSPe0N/NPscnSsqhPq kXsxmNw9J3hBQJtPQYms53P7NvjtO3tAtISZGl5hwIaklzgfdkMiPny1s +kWpzhKMVq/U220E0leRDyjktAcEzWLiglybJZhdmwiNVqKxhxuLn5cIU H8jQDBpWFJjpGDtzdwMXuhJQ37JancDafG27ook00de9OETksrfjIp+Z9 Q==; X-CSE-ConnectionGUID: iYru1ppvS0ym8RBHQuUd0Q== X-CSE-MsgGUID: seEKU/CpQVislYydMHSaig== X-IronPort-AV: E=McAfee;i="6800,10657,11759"; a="94776392" X-IronPort-AV: E=Sophos;i="6.23,179,1770624000"; d="scan'208";a="94776392" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2026 00:23:14 -0700 X-CSE-ConnectionGUID: Jr1vmV0ZQa66u/yhvAXOUg== X-CSE-MsgGUID: yOswYnunQU2OzWxpXj9ISg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,179,1770624000"; d="scan'208";a="230194838" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2026 00:23:13 -0700 From: Markus Metzger To: gdb-patches@sourceware.org Subject: [PATCH v8 0/4] PR gdb/31353 Date: Wed, 15 Apr 2026 07:23:07 +0000 Message-Id: <20260415072311.3597558-1-markus.t.metzger@intel.com> X-Mailer: git-send-email 2.34.1 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 Reviving an old patch series that was first submitted in Jan'21. It fixes issues with breakpoints at the end of the execution history, including PR gdb/31353, which was submitted in the meantime. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31353 Changes in v8: - rebased and resolved conflicts Changes in v7: - use thread control execution direction in print_no_history_reason() Changes in v6: - updated tests to use the new end-of-history wording from 089197010993b3a5dc50bf882470bab2de696d92 Changes in v5: - remove redundant forward declaration The changes are mostly in infrun and require global maintainer approval. Markus Metzger (4): gdb, infrun, btrace: fix reverse/replay stepping at end of execution history gdb, infrun, record: fix hang when step-over fails with no-history gdb, infrun, record: move no-history notification into normal_stop gdb, infrun: fix multi-threaded reverse stepping gdb/gdbthread.h | 13 +++ gdb/infrun.c | 100 ++++++++++++----- gdb/infrun.h | 7 -- gdb/record-btrace.c | 19 ++-- gdb/testsuite/gdb.btrace/cont-hang.exp | 43 ++++++++ .../gdb.btrace/implicit-stop-replaying.exp | 101 ++++++++++++++++++ .../gdb.btrace/multi-thread-break-hang.exp | 85 +++++++++++++++ gdb/testsuite/gdb.btrace/step-hang.exp | 42 ++++++++ gdb/testsuite/gdb.btrace/stepn.exp | 50 +++++++++ 9 files changed, 418 insertions(+), 42 deletions(-) create mode 100644 gdb/testsuite/gdb.btrace/cont-hang.exp create mode 100644 gdb/testsuite/gdb.btrace/implicit-stop-replaying.exp create mode 100644 gdb/testsuite/gdb.btrace/multi-thread-break-hang.exp create mode 100644 gdb/testsuite/gdb.btrace/step-hang.exp create mode 100644 gdb/testsuite/gdb.btrace/stepn.exp -- 2.34.1 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