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


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


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