From ccf26247763aa6c68b6cb7990c98afe881e8f811 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 11 Mar 2010 22:07:03 +0000 Subject: gdb/ * solib-svr4.c (LM_ADDR_CHECK) : 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. --- gdb/testsuite/gdb.base/prelink.exp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'gdb/testsuite/gdb.base/prelink.exp') 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" -- cgit v1.1