From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by sourceware.org (Postfix) with ESMTPS id 0FCE23AAA0D9 for ; Thu, 4 Feb 2021 08:11:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0FCE23AAA0D9 IronPort-SDR: 6JX4W6i10gYtBXPxJxWtYGKUldtIHLCIekLE+HIPw0NSfsiEOaQ31+wlY2fdZqZpK2924Vqgz9 YbmaBLhMdkDQ== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="178632775" X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="178632775" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 00:11:21 -0800 IronPort-SDR: 7zHx1FCu4ZOxBKjCYouBkUvHtH+Gr+DIvuSPqJO7Pyh5jGUpfsd/vlsV5RZoSvTLBK9RpTmEIY gr9WP9Kx/FxQ== X-IronPort-AV: E=Sophos;i="5.79,400,1602572400"; d="scan'208";a="433825605" Received: from labpc2407.iul.intel.com (HELO localhost) ([172.28.50.61]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2021 00:11:19 -0800 From: Markus Metzger To: gdb-patches@sourceware.org Subject: [PATCH 2/8] testsuite, gdb.btrace: remove assembly-check in delta.exp Date: Thu, 4 Feb 2021 09:10:31 +0100 Message-Id: <20210204081037.3712162-6-markus.t.metzger@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204081037.3712162-1-markus.t.metzger@intel.com> References: <20210204081037.3712162-1-markus.t.metzger@intel.com> 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: Thu, 04 Feb 2021 08:11:23 -0000 In gdb.btrace/delta.exp, we test that we do not extend the trace unintentionally. This can be tested by checking the number of instructions. If we wanted to check the instruction history, as well, we'd need to work on an assembly file to have deterministic behaviour. This isn't really necessary for this test, however, and covered elsewhere. Also remove the function call history check for the same reason. gdb/testsuite/ChangeLog: 2020-12-15 Markus Metzger * gdb.btrace/delta.exp: Remove instruction-history and function-call-history checks. --- gdb/testsuite/gdb.btrace/delta.exp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gdb/testsuite/gdb.btrace/delta.exp b/gdb/testsuite/gdb.btrace/delta.exp index 9f6d741c013..0d61e9aa54e 100644 --- a/gdb/testsuite/gdb.btrace/delta.exp +++ b/gdb/testsuite/gdb.btrace/delta.exp @@ -58,9 +58,6 @@ proc check_trace {} { "Recording format: .*" \ "Recorded 1 instructions in 1 functions \\\(0 gaps\\\) for .*" \ ] - gdb_test "record instruction-history /f 1" \ - "1\t 0x\[0-9a-f\]+ <\\+\[0-9\]+>:\tmov *\\\$0x0,%eax\r" - gdb_test "record function-call-history /c 1" "1\tmain" } # make sure we don't extend the trace when we ask twice. @@ -86,9 +83,5 @@ with_test_prefix "reverse" { # and back with_test_prefix "forward" { gdb_test "stepi" - gdb_test "info record" [multi_line \ - "Active record target: record-btrace" \ - "Recording format: .*" \ - "Recorded 1 instructions in 1 functions \\\(0 gaps\\\) for .*" \ - ] + check_trace } -- 2.26.2 Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Gary Kershaw Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928