This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] testsuite: break-entry.exp: convert entry point for ppc64
- From: emachado at linux dot vnet dot ibm dot com
- To: gdb-patches at sourceware dot org
- Cc: luisgpm at linux dot vnet dot ibm dot com, Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- Date: Fri, 1 Oct 2010 22:08:22 -0300
- Subject: [PATCH] testsuite: break-entry.exp: convert entry point for ppc64
From: Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Hi,
This patch intents to collect the correct entry point address for ppc64,
since the address from `info files' points to the function descriptor.
It also changes the last test, in order to permit the `.' prefix, found
on ppc64's symbols.
Is that ok?
Thanks,
--
Edjunior Machado
gdb/testsuite/
2010-10-01 Edjunior Machado <emachado@br.ibm.com>
Luis Machado <luisgpm@br.ibm.com>
* testsuite/gdb.base/break-entry.exp: convert entry point for
ppc64 and expect leading `.' on ppc64's symbols
---
gdb/testsuite/gdb.base/break-entry.exp | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/gdb/testsuite/gdb.base/break-entry.exp b/gdb/testsuite/gdb.base/break-entry.exp
index d4b86a3..7e4b36f 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\]*)?\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.*"
--
1.7.1