From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id veS1GfLjwmLx+gsAWB0awg (envelope-from ) for ; Mon, 04 Jul 2022 08:58:26 -0400 Received: by simark.ca (Postfix, from userid 112) id 539E21E22B; Mon, 4 Jul 2022 08:58:26 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ZqwXLOCe; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id AD6E51E222 for ; Mon, 4 Jul 2022 08:58:25 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 00BA2385C338 for ; Mon, 4 Jul 2022 12:58:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 00BA2385C338 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1656939505; bh=RXXtvnHkufp4Ogp2EaEgMB2kVsqm3Q9VeWBGt3juvnY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=ZqwXLOCeASqMcC8/MEBX2hGPae61e8CAj8FnlmWS99bAJIsv1v3XWMkZnDMCEvqp3 xe2niqOraKK9ENVSzDpXZP9LgP9OzIsOBAdJhjQIJrH4jKjvoleyC5Pnt/hFQ7DUQ5 W9MWEsQOSmqOOgLB1M20apN3SWPdw5QODZJmxEws= Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by sourceware.org (Postfix) with ESMTPS id C1AC3385BAE9 for ; Mon, 4 Jul 2022 12:58:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C1AC3385BAE9 X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="266148548" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="266148548" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 05:58:01 -0700 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="567220175" Received: from labpc2407.iul.intel.com (HELO localhost) ([172.28.48.175]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 05:58:00 -0700 To: gdb-patches@sourceware.org Subject: [PATCH v3 0/4] gdb, btrace: infrun fixes Date: Mon, 4 Jul 2022 13:54:03 +0200 Message-Id: <20220704115407.1239498-1-markus.t.metzger@intel.com> X-Mailer: git-send-email 2.35.3 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.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Markus Metzger via Gdb-patches Reply-To: Markus Metzger Cc: pedro@palves.net Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Changes in v3: - fix an assertion in clean_up_just_stopped_threads_fsms after finish_step_over changed the current thread. Changes in v2: - address feedback from Pedro Alves There's still an open question raised here: https://sourceware.org/pipermail/gdb-patches/2021-November/183700.html. I'm wondering if prepare_one_step() should reset tp->control.step_stop to zero. It does re-initialize tp->control.step_range_start/end and we do start another step. 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 | 88 +++++++++++---- gdb/infrun.h | 7 -- gdb/record-btrace.c | 19 ++-- gdb/testsuite/gdb.btrace/cont-hang.exp | 47 ++++++++ .../gdb.btrace/implicit-stop-replaying.exp | 105 ++++++++++++++++++ .../gdb.btrace/multi-thread-break-hang.exp | 88 +++++++++++++++ gdb/testsuite/gdb.btrace/step-hang.exp | 46 ++++++++ gdb/testsuite/gdb.btrace/stepn.exp | 54 +++++++++ 9 files changed, 431 insertions(+), 36 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.35.3 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928