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 1D20A3857C76 for ; Thu, 2 Dec 2021 07:25:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1D20A3857C76 X-IronPort-AV: E=McAfee;i="6200,9189,10185"; a="223520045" X-IronPort-AV: E=Sophos;i="5.87,281,1631602800"; d="scan'208";a="223520045" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2021 23:25:09 -0800 X-IronPort-AV: E=Sophos;i="5.87,281,1631602800"; d="scan'208";a="597049338" Received: from labpc2407.iul.intel.com (HELO localhost) ([172.28.50.61]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2021 23:25:08 -0800 From: Markus Metzger To: gdb-patches@sourceware.org Subject: [PATCH v2 0/4] gdb, btrace: infrun fixes Date: Thu, 2 Dec 2021 08:23:16 +0100 Message-Id: <20211202072320.3048100-1-markus.t.metzger@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Thu, 02 Dec 2021 07:25:11 -0000 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 | 82 ++++++++++---- 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, 425 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.31.1 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