This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] testsuite: break-entry.exp: convert entry point for ppc64


Thanks Jan for the feedback.
Sending the updated patch with the changes you suggested.

Thanks,
Edjunior


gdb/testsuite/
2010-10-01  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

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.*"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]