From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3229 invoked by alias); 10 Sep 2010 14:55:03 -0000 Received: (qmail 3170 invoked by uid 22791); 10 Sep 2010 14:55:02 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp05.br.ibm.com (HELO e24smtp05.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Sep 2010 14:54:57 +0000 Received: from mailhub1.br.ibm.com (mailhub1.br.ibm.com [9.18.232.109]) by e24smtp05.br.ibm.com (8.14.4/8.13.1) with ESMTP id o8AEoW7j014838; Fri, 10 Sep 2010 11:50:33 -0300 Received: from d24av05.br.ibm.com (d24av05.br.ibm.com [9.18.232.44]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8AF0de9860502; Fri, 10 Sep 2010 12:00:39 -0300 Received: from d24av05.br.ibm.com (loopback [127.0.0.1]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o8AEsrxj028699; Fri, 10 Sep 2010 11:54:53 -0300 Received: from [9.78.142.79] ([9.78.142.79]) by d24av05.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o8AEsqYu028682; Fri, 10 Sep 2010 11:54:52 -0300 Message-ID: <4C8A46BC.7080502@linux.vnet.ibm.com> Date: Fri, 10 Sep 2010 15:45:00 -0000 From: Edjunior Barbosa Machado User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100619 Lightning/1.0b1 Icedove/3.0.5 MIME-Version: 1.0 To: Jan Kratochvil CC: gdb@sourceware.org, gdb-patches@sourceware.org Subject: Re: [patch] [ppc64] testsuite: break-interp.exp [Re: info files' Entry point on ppc64] References: <4C87BBA7.7090008@linux.vnet.ibm.com> <20100909140513.GA20677@host1.dyn.jankratochvil.net> In-Reply-To: <20100909140513.GA20677@host1.dyn.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2010-09/txt/msg00224.txt.bz2 On 09/09/2010 11:05 AM, Jan Kratochvil wrote: > On Wed, 08 Sep 2010 18:36:55 +0200, Edjunior Barbosa Machado wrote: >> Entry point: 0x251c11e0 >> break *0x251c11e0 >> Program received signal SIGSEGV, Segmentation fault. >> 0x7d821008251b0a90 in ?? () > > OK, thanks for the bugreport, fix attached. > > OTOH still both ppc64->ppc32 and ppc64->ppc64 produce a lot of FAILs which > I do not see obvious (such as some `seen displacement message as ZERO' which > should have 0 displacement as being prelinked); I can check them later. > Hi Jan, thanks for the patch, but it seems it doesn't work properly when testing 32-bit gdb in a 64-bit environment. Using is_lp64_target should avoid this issue. Thanks, -- Edjunior Barbosa Machado IBM Linux Technology Center gdb/testsuite/ 2010-09-10 Edjunior Barbosa Machado * gdb.base/break-interp.exp: add is_lp64_target to check 64bit target --- a/gdb/testsuite/gdb.base/break-interp.exp +++ b/gdb/testsuite/gdb.base/break-interp.exp @@ -401,7 +401,7 @@ proc test_ld {file ifmain trynosym displacement} { } # `info sym' cannot be tested for .opd as the binary may not have # symbols. - if [istarget powerpc64-*] { + if {[istarget powerpc64-*] && [is_lp64_target]} { set test "convert entry point" gdb_test_multiple "p *(void(*)(void) *) 0x$entrynohex" $test { -re " =( \\(\[^0-9\]*\\))? 0x(\[0-9a-f\]+)( < \[^\r\n\]*)?\r\n$gdb_prompt $" {