gdb/testsuite/

* gdb.base/break-entry.exp: convert entry point for
	ppc64 and expect leading `.' on ppc64's symbols
This commit is contained in:
Jan Kratochvil 2010-11-08 18:05:56 +00:00
parent 6548efc112
commit aa00efb580
2 changed files with 17 additions and 1 deletions

View File

@ -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.

View File

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