From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by sourceware.org (Postfix) with ESMTPS id CF93D3858004 for ; Tue, 16 Mar 2021 09:26:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CF93D3858004 IronPort-SDR: Nn8UMwFhTDDPnD6vAGqMQcuytdrAIGNOD+FAT4LM5u3pR9iSDT0uFwNMvjVarfKvF5JnajjMtW PEwUZv6e5TXg== X-IronPort-AV: E=McAfee;i="6000,8403,9924"; a="189278433" X-IronPort-AV: E=Sophos;i="5.81,251,1610438400"; d="scan'208";a="189278433" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 02:26:34 -0700 IronPort-SDR: UCSBbxbHPzk8d3qUNzYco/8tdSlX1egtKjmpouFOlj6JjlyaclBl0kIw8erhF+i6dSLVLRS4gn TxhVlzlLGb3g== X-IronPort-AV: E=Sophos;i="5.81,251,1610438400"; d="scan'208";a="412151368" Received: from labpc2407.iul.intel.com (HELO localhost) ([172.28.50.61]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 02:26:33 -0700 From: Markus Metzger To: gdb-patches@sourceware.org Subject: [PATCH] gdb, testsuite, btrace: relax unneeded stepi expected output Date: Tue, 16 Mar 2021 10:26:37 +0100 Message-Id: <20210316092637.935739-1-markus.t.metzger@intel.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Tue, 16 Mar 2021 09:26:40 -0000 In gdb.btrace/reconnect.exp, we test that we can disconnect and reconnect again to a GDB session that is recording with the btrace recording format. It does not really matter what we are recording. The test assumed that stepping from _start will bring us into an area without debug information. This is not correct on all systems. Relax the expected output to also support systems where we do have debug information for that code. gdb/testsuite/ChangeLog: 2021-03-08 Markus Metzger * gdb.btrace/reconnect.exp: Relax expected stepi output. --- gdb/testsuite/gdb.btrace/reconnect.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.btrace/reconnect.exp b/gdb/testsuite/gdb.btrace/reconnect.exp index 2e61d3591f3..26578706eaf 100644 --- a/gdb/testsuite/gdb.btrace/reconnect.exp +++ b/gdb/testsuite/gdb.btrace/reconnect.exp @@ -51,7 +51,7 @@ gdb_target_cmd $gdbserver_protocol $gdbserver_gdbport # Create a record, check, reconnect with_test_prefix "first" { gdb_test_no_output "record btrace" "record btrace enable" - gdb_test "stepi 19" "($hex in .* from .*|$hex\t$decimal.*)" + gdb_test "stepi 19" ".*" gdb_test "info record" [multi_line \ "Active record target: .*" \ -- 2.29.2 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