From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30432 invoked by alias); 9 Sep 2010 14:05:35 -0000 Received: (qmail 30403 invoked by uid 22791); 9 Sep 2010 14:05:31 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Sep 2010 14:05:26 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o89E5MA7016544 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Sep 2010 10:05:23 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o89E5Ete003358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Sep 2010 10:05:18 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o89E5EP5021110; Thu, 9 Sep 2010 16:05:14 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o89E5DNu021109; Thu, 9 Sep 2010 16:05:13 +0200 Date: Thu, 09 Sep 2010 15:27:00 -0000 From: Jan Kratochvil To: Edjunior Barbosa Machado Cc: gdb@sourceware.org, gdb-patches@sourceware.org Subject: [patch] [ppc64] testsuite: break-interp.exp [Re: info files' Entry point on ppc64] Message-ID: <20100909140513.GA20677@host1.dyn.jankratochvil.net> References: <4C87BBA7.7090008@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C87BBA7.7090008@linux.vnet.ibm.com> User-Agent: Mutt/1.5.20 (2009-12-10) 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/msg00198.txt.bz2 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. Regards, Jan gdb/testsuite/ 2010-09-09 Jan Kratochvil * gdb.base/break-interp.exp (reach): Permit leading . for ppc64. (test_ld) : New. --- a/gdb/testsuite/gdb.base/break-interp.exp +++ b/gdb/testsuite/gdb.base/break-interp.exp @@ -136,10 +136,10 @@ proc reach {func command displacement} { } exp_continue } - -re "Breakpoint \[0-9\]+, $func \\(.*\\) at .*:\[0-9\]+\r\n.*$gdb_prompt $" { + -re "Breakpoint \[0-9\]+, \\.?$func \\(.*\\) at .*:\[0-9\]+\r\n.*$gdb_prompt $" { pass $test } - -re "Breakpoint \[0-9\]+, \[0-9xa-f\]+ in $func \\(\\).*\r\n$gdb_prompt $" { + -re "Breakpoint \[0-9\]+, \[0-9xa-f\]+ in \\.?$func \\(\\).*\r\n$gdb_prompt $" { pass $test } } @@ -399,6 +399,17 @@ proc test_ld {file ifmain trynosym displacement} { pass $test } } + # `info sym' cannot be tested for .opd as the binary may not have + # symbols. + if [istarget powerpc64-*] { + 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 $" { + set entrynohex $expect_out(2,string) + pass $test + } + } + } if {$entrynohex != ""} { gdb_test "break *0x$entrynohex" "" "break at entry point" gdb_test "continue" "\r\nBreakpoint \[0-9\]+, 0x0*$entrynohex in .*" "entry point reached"