From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14241 invoked by alias); 1 Aug 2014 20:11:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 14229 invoked by uid 89); 1 Aug 2014 20:11:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 01 Aug 2014 20:11:39 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s71KBb6M009868 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Aug 2014 16:11:37 -0400 Received: from host2.jankratochvil.net (ovpn-116-57.ams2.redhat.com [10.36.116.57]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s71KBX5b010119 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Fri, 1 Aug 2014 16:11:36 -0400 Date: Fri, 01 Aug 2014 20:11:00 -0000 From: Jan Kratochvil To: Keven Boell Cc: gdb-patches@sourceware.org, sanimir.agovic@intel.com Subject: Re: [V2 15/23] test: dynamic arrays passed to subroutines. Message-ID: <20140801201133.GA24508@host2.jankratochvil.net> References: <1405070495-6948-1-git-send-email-keven.boell@intel.com> <1405070495-6948-16-git-send-email-keven.boell@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1405070495-6948-16-git-send-email-keven.boell@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00024.txt.bz2 On Fri, 11 Jul 2014 11:21:27 +0200, Keven Boell wrote: > +gdb_test "finish" \ > + ".*foo\\\(sub_arr1\\\(5:10, 5:10\\\), sub_arr2\\\(10:15,10:15,10:15\\\)\\\)" \ > + "finish function" This testcase FAILs for 32-bit targets (FAILs on both x86_64-m32 and on i686). finish^M Run till exit from #0 foo (array1=..., array2=...) at gdb/testsuite/gdb.fortran/vla-sub.f90:31^M 0x08048aa5 in vla_sub () at gdb/testsuite/gdb.fortran/vla-sub.f90:72^M 72 call foo(sub_arr1, sub_arr2)^M (gdb) FAIL: gdb.fortran/vla-value-sub-finish.exp: finish function 8048aa0: e8 e9 fb ff ff call 804868e 8048aa5: 83 c4 08 add $0x8,%esp /home/jkratoch/redhat/gdb-vla-intel-noasan/gdb/testsuite/./gdb.fortran/vla-sub.f90:73 finish^M Run till exit from #0 foo (array1=..., array2=...) at gdb/testsuite/gdb.fortran/vla-sub.f90:31^M vla_sub () at gdb/testsuite/gdb.fortran/vla-sub.f90:73^M 73 call foo(sub_arr1(5:10, 5:10), sub_arr2(10:15,10:15,10:15))^M (gdb) PASS: gdb.fortran/vla-value-sub-finish.exp: finish function 400d34: e8 23 fb ff ff callq 40085c /home/jkratoch/redhat/gdb-vla-intel-noasan/gdb/testsuite/./gdb.fortran/vla-sub.f90:73 It is understandable, "finish" command sometimes ends up on the caller source line and sometimes on the next source line after caller, depending on the arch. At least this way it happens on: gcc-4.9.1-2.fc21.1.x86_64 Thanks, Jan