From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Markus Metzger To: gdb-patches@sourceware.org Cc: pedro@palves.net 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-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 04 Jul 2022 12:58:05 -0000 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