This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] testsuite: break-entry.exp: convert entry point for ppc64
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 8 Nov 2010 19:07:19 +0100
- Subject: Re: [PATCH] testsuite: break-entry.exp: convert entry point for ppc64
- References: <20101005213017.GA30717@host1.dyn.jankratochvil.net> <1286462667-14653-1-git-send-email-emachado@linux.vnet.ibm.com>
On Thu, 07 Oct 2010 16:44:27 +0200, Edjunior Barbosa Machado wrote:
> Thanks Jan for the feedback.
> Sending the updated patch with the changes you suggested.
Checked-in, sorry for the delay.
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2010-11/msg00040.html
--- src/gdb/testsuite/ChangeLog 2010/11/05 17:07:35 1.2501
+++ src/gdb/testsuite/ChangeLog 2010/11/08 18:05:55 1.2502
@@ -1,3 +1,9 @@
+2010-11-08 Edjunior Machado <emachado@br.ibm.com>
+ Luis Machado <luisgpm@br.ibm.com>
+
+ * gdb.base/break-entry.exp: convert entry point for
+ ppc64 and expect leading `.' on ppc64's symbols
+
2010-11-05 Doug Evans <dje@google.com>
* gdb.base/help.exp: Update expected output.
--- src/gdb/testsuite/gdb.base/break-entry.exp 2010/04/04 22:12:14 1.1
+++ src/gdb/testsuite/gdb.base/break-entry.exp 2010/11/08 18:05:56 1.2
@@ -34,10 +34,20 @@
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.*"