From patchwork Mon Sep 11 07:28:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abdul Basit Ijaz X-Patchwork-Id: 75627 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0E1503858419 for ; Mon, 11 Sep 2023 07:29:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E1503858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1694417386; bh=cKsb4IO2dgWjj4z56slHozBAmH9SLyNYysy6Uliy3HI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=KbWtn+NpL/HPLRBoJTGuBZ+qfJ40Xjb7/Nc9cqU4QVXcYNCp9iVbRX1fSLe+Wrpom DK/OoPd41M2pk6fbZg24Eu+g4OTb17hMp6V0FgLrEThQwamcUsVrCd4WLu2NCvNCNx SMC7u2F7O7K7q9Tc495RLCOehSjYOaahb9pM8XFg= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id 2A7973858D37 for ; Mon, 11 Sep 2023 07:29:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A7973858D37 X-IronPort-AV: E=McAfee;i="6600,9927,10829"; a="380713711" X-IronPort-AV: E=Sophos;i="6.02,243,1688454000"; d="scan'208";a="380713711" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 00:29:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10829"; a="778295402" X-IronPort-AV: E=Sophos;i="6.02,243,1688454000"; d="scan'208";a="778295402" Received: from abijaz-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.44.189]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 00:29:18 -0700 To: gdb-patches@sourceware.org Subject: [PATCH 1/1] testsuite, fortran: Fix regression due to fix for ifort's 'start' behavior Date: Mon, 11 Sep 2023 09:28:48 +0200 Message-Id: <20230911072848.20134-1-abdul.b.ijaz@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Abdul Basit Ijaz via Gdb-patches From: Abdul Basit Ijaz Reply-To: Abdul Basit Ijaz Cc: abdul.b.ijaz@intel.com, tom@tromey.com Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" From: "Ijaz, Abdul B" Got a regression email due to merge of commit in CI config tcwg_gdb_check/master-aarch64 : https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=41439185cd0075bbb1aedf9665685dba0827cfec Begining of test "gdb.fortran/array-slices-bad.exp" was updated in above commit to start the test from running to line with tag "First Breakpoint" instead of "fortran_runto_main". Reason of the regression is shared libraries are still loaded after hitting the breakpoint as "nosharedlibrary" is already called before hitting the breakpoint. So now after this change test is updated accordingly to disable and unload shared libraries symbols after hitting the first breakpoint. 2023-09-09 Ijaz, Abdul B --- gdb/testsuite/gdb.fortran/array-slices-bad.exp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/gdb.fortran/array-slices-bad.exp b/gdb/testsuite/gdb.fortran/array-slices-bad.exp index d7b00694539..280628db1b4 100644 --- a/gdb/testsuite/gdb.fortran/array-slices-bad.exp +++ b/gdb/testsuite/gdb.fortran/array-slices-bad.exp @@ -25,17 +25,17 @@ if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \ return -1 } +if {![runto [gdb_get_line_number "First Breakpoint"]]} { + perror "couldn't run to breakpoint First Breakpoint" + return -1 +} + # Avoid shared lib symbols. gdb_test_no_output "set auto-solib-add off" # Avoid libc symbols, in particular the 'array' type. gdb_test_no_output "nosharedlibrary" -if {![runto [gdb_get_line_number "First Breakpoint"]]} { - perror "couldn't run to breakpoint First Breakpoint" - return -1 -} - gdb_breakpoint [gdb_get_line_number "Second Breakpoint"] gdb_breakpoint [gdb_get_line_number "Final Breakpoint"]