aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/break-interp.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-09-09 20:00:49 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-09-09 20:00:49 +0000
commit4569eed2ceb9ca011d1a3c5e53286ce9150d7042 (patch)
tree6a9b7317bcd2e936be20131e919e969bd2e5644a /gdb/testsuite/gdb.base/break-interp.exp
parent6695e4b3d3e7a3621b006a7571dfdfae8351b970 (diff)
downloadgdb-4569eed2ceb9ca011d1a3c5e53286ce9150d7042.zip
gdb-4569eed2ceb9ca011d1a3c5e53286ce9150d7042.tar.gz
gdb-4569eed2ceb9ca011d1a3c5e53286ce9150d7042.tar.bz2
gdb/testsuite/
* gdb.base/break-interp.exp (reach): Permit leading . for ppc64. (test_ld) <powerpc64-*>: New.
Diffstat (limited to 'gdb/testsuite/gdb.base/break-interp.exp')
-rw-r--r--gdb/testsuite/gdb.base/break-interp.exp15
1 files changed, 13 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp
index 5039bcb..d3dd248 100644
--- a/gdb/testsuite/gdb.base/break-interp.exp
+++ b/gdb/testsuite/gdb.base/break-interp.exp
@@ -136,10 +136,10 @@ proc reach {func command displacement} {
}
exp_continue
}
- -re "Breakpoint \[0-9\]+, $func \\(.*\\) at .*:\[0-9\]+\r\n.*$gdb_prompt $" {
+ -re "Breakpoint \[0-9\]+, \\.?$func \\(.*\\) at .*:\[0-9\]+\r\n.*$gdb_prompt $" {
pass $test
}
- -re "Breakpoint \[0-9\]+, \[0-9xa-f\]+ in $func \\(\\).*\r\n$gdb_prompt $" {
+ -re "Breakpoint \[0-9\]+, \[0-9xa-f\]+ in \\.?$func \\(\\).*\r\n$gdb_prompt $" {
pass $test
}
}
@@ -399,6 +399,17 @@ proc test_ld {file ifmain trynosym displacement} {
pass $test
}
}
+ # `info sym' cannot be tested for .opd as the binary may not have
+ # symbols.
+ if [istarget powerpc64-*] {
+ set test "convert entry point"
+ gdb_test_multiple "p *(void(*)(void) *) 0x$entrynohex" $test {
+ -re " =( \\(\[^0-9\]*\\))? 0x(\[0-9a-f\]+)( < \[^\r\n\]*)?\r\n$gdb_prompt $" {
+ set entrynohex $expect_out(2,string)
+ pass $test
+ }
+ }
+ }
if {$entrynohex != ""} {
gdb_test "break *0x$entrynohex" "" "break at entry point"
gdb_test "continue" "\r\nBreakpoint \[0-9\]+, 0x0*$entrynohex in .*" "entry point reached"