From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8632 invoked by alias); 7 Oct 2010 14:44:56 -0000 Received: (qmail 8621 invoked by uid 22791); 7 Oct 2010 14:44:55 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp03.br.ibm.com (HELO e24smtp03.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Oct 2010 14:44:50 +0000 Received: from mailhub3.br.ibm.com (mailhub3.br.ibm.com [9.18.232.110]) by e24smtp03.br.ibm.com (8.14.4/8.13.1) with ESMTP id o97Ecv5U010448 for ; Thu, 7 Oct 2010 11:38:57 -0300 Received: from d24av03.br.ibm.com (d24av03.br.ibm.com [9.8.31.95]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o97Eovg22818136 for ; Thu, 7 Oct 2010 11:50:58 -0300 Received: from d24av03.br.ibm.com (loopback [127.0.0.1]) by d24av03.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o97EihAC023392 for ; Thu, 7 Oct 2010 11:44:43 -0300 Received: from evol.ibm.com ([9.18.198.61]) by d24av03.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o97EifUP023352 for ; Thu, 7 Oct 2010 11:44:42 -0300 From: Edjunior Barbosa Machado To: gdb-patches@sourceware.org Subject: Re: [PATCH] testsuite: break-entry.exp: convert entry point for ppc64 Date: Thu, 07 Oct 2010 14:44:00 -0000 Message-Id: <1286462667-14653-1-git-send-email-emachado@linux.vnet.ibm.com> In-Reply-To: <20101005213017.GA30717@host1.dyn.jankratochvil.net> References: <20101005213017.GA30717@host1.dyn.jankratochvil.net> 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-10/txt/msg00120.txt.bz2 Thanks Jan for the feedback. Sending the updated patch with the changes you suggested. Thanks, Edjunior gdb/testsuite/ 2010-10-01 Edjunior Machado Luis Machado * gdb.base/break-entry.exp: convert entry point for ppc64 and expect leading `.' on ppc64's symbols diff --git a/gdb/testsuite/gdb.base/break-entry.exp b/gdb/testsuite/gdb.base/break-entry.exp index d4b86a3..1360504 100644 --- a/gdb/testsuite/gdb.base/break-entry.exp +++ b/gdb/testsuite/gdb.base/break-entry.exp @@ -34,10 +34,20 @@ if {$entry == ""} { return } +if {[istarget powerpc64-*] && [is_lp64_target]} { + set test "convert entry point" + gdb_test_multiple "p *(void(*)(void) *) $entry" $test { + -re " =( \\(\[^0-9\]*\\))? (0x\[0-9a-f\]+)( <.*)?\r\n$gdb_prompt $" { + set entry $expect_out(2,string) + pass $test + } + } +} + if ![runto "*$entry"] { return } gdb_test {p/x $pc} " = $entry" gdb_breakpoint "main" -gdb_continue_to_breakpoint "main" "main.*" +gdb_continue_to_breakpoint "main" "\\.?main.*"