aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/prelink.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-03-11 22:07:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-03-11 22:07:03 +0000
commitccf26247763aa6c68b6cb7990c98afe881e8f811 (patch)
treeb04f7bf30dc6fd2842da39fdbbf42ac8125e6609 /gdb/testsuite/gdb.base/prelink.exp
parent477c84a75fdca66b9f85ad33e0c5a4ae2226b789 (diff)
downloadgdb-ccf26247763aa6c68b6cb7990c98afe881e8f811.zip
gdb-ccf26247763aa6c68b6cb7990c98afe881e8f811.tar.gz
gdb-ccf26247763aa6c68b6cb7990c98afe881e8f811.tar.bz2
gdb/
* solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered for the PIC displacement, print also the displacement value. (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. gdb/testsuite/ * gdb.base/break-interp.exp: Create new displacement parameter value for the test_ld calls. (reach): New parameter displacement, verify its content. New push of pf_prefix "reach-$func:". Import global expect_out. (test_core): New parameter displacement, verify its content. New push of pf_prefix "core:". New command "set verbose on". Import global expect_out. (test_attach): New parameter displacement, verify its content. New push of pf_prefix "attach:". New command "set verbose on". Import global expect_out. (test_ld): New parameter displacement, pass it to the reach, test_core and test_attach calls and verify its content in the "ld.so exit" test. * gdb.base/prelink.exp: Remove gdb_exit and final return. (prelink): Update expected text, use gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.base/prelink.exp')
-rw-r--r--gdb/testsuite/gdb.base/prelink.exp13
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.base/prelink.exp b/gdb/testsuite/gdb.base/prelink.exp
index 2c92f2f..c90d6b5 100644
--- a/gdb/testsuite/gdb.base/prelink.exp
+++ b/gdb/testsuite/gdb.base/prelink.exp
@@ -112,15 +112,4 @@ gdb_load ${binfile}
# Print the "adjusting expectations" message.
gdb_test "set verbose on"
-set test "prelink"
-global gdb_prompt
-gdb_test_multiple "core-file $objdir/$subdir/prelink.core" "$test" {
- -re "warning: \.dynamic section.*not at the expected address.*warning: difference.*caused by prelink, adjusting expectations.*$gdb_prompt $" {
- pass "$test"
- }
-}
-
-gdb_exit
-
-return 0
-
+gdb_test "core-file $objdir/$subdir/prelink.core" {Using PIC \(Position Independent Code\) prelink displacement.*} "prelink"