From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 3zKNBtN5UGBCVQAAWB0awg (envelope-from ) for ; Tue, 16 Mar 2021 05:26:43 -0400 Received: by simark.ca (Postfix, from userid 112) id 8A9151EF78; Tue, 16 Mar 2021 05:26:42 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [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 B08791E54D for ; Tue, 16 Mar 2021 05:26:41 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D59F03858004; Tue, 16 Mar 2021 09:26:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D59F03858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615886800; bh=rrMc8er9me2StTHv7mH09sSuhJw75w/Hi4FXgKTtzOE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=cHrWHwGkhFvfV9NfOL4vdfQlzBrNu9CiKzogMaPj7xqcIcAhoCLjTlt/SMtXh4uDe 9aMUaKct6XKZugishAMJIseJAGQTk8xk9KFKf666DTAzPJrJ8ugkXUtI63B2+FjuRc ShMYkfOkw/9ZhsX3oBFxgspmKHWme3mHh/FH96VA= 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 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-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 Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" 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