From 86e4bafc3b0bb0148b95807d37b36aae14cdf56c Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 5 Jul 2010 18:00:40 +0000 Subject: gdb/ * auxv.c (memory_xfer_auxv): Update attach comment. * solib-svr4.c (svr4_special_symbol_handling): Remove the call to svr4_relocate_main_executable. (svr4_solib_create_inferior_hook): Make the call to svr4_relocate_main_executable unconditional. gdb/testsuite/ * gdb.base/attach-pie-misread.exp, gdb.base/attach-pie-misread.c: New. * gdb.base/break-interp.exp (reach, test_core, test_ld): Require each displacement message exactly once. --- gdb/testsuite/gdb.base/break-interp.exp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'gdb/testsuite/gdb.base/break-interp.exp') diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp index 910002d..8cd20d4 100644 --- a/gdb/testsuite/gdb.base/break-interp.exp +++ b/gdb/testsuite/gdb.base/break-interp.exp @@ -253,9 +253,8 @@ proc reach {func command displacement} { } if {$displacement == $case} { pass $test_displacement - # Permit multiple such messages. set displacement "FOUND-$displacement" - } elseif {$displacement != "FOUND-$case"} { + } else { fail $test_displacement } exp_continue @@ -310,9 +309,8 @@ proc test_core {file displacement} { } if {$displacement == $case} { pass $test_displacement - # Permit multiple such messages. set displacement "FOUND-$displacement" - } elseif {$displacement != "FOUND-$case"} { + } else { fail $test_displacement } exp_continue @@ -368,9 +366,8 @@ proc test_attach_gdb {file pid displacement prefix} { } if {$displacement == $case} { pass $test_displacement - # Permit multiple such messages. set displacement "FOUND-$displacement" - } elseif {$displacement != "FOUND-$case"} { + } else { fail $test_displacement } exp_continue @@ -468,15 +465,7 @@ proc test_ld {file ifmain trynosym displacement} { gdb_test "bt" "#0 +\[^\r\n\]*\\mdl_main\\M.*" "dl bt" if $ifmain { - # Displacement message will be printed the second time on initializing - # the linker from svr4_special_symbol_handling. If any ANOFFSET has - # been already set as non-zero the detection will no longer be run. - if {$displacement == "NONZERO"} { - set displacement_main "NONE" - } else { - set displacement_main $displacement - } - reach "main" continue $displacement_main + reach "main" continue "NONE" reach "libfunc" continue "NONE" @@ -542,9 +531,8 @@ proc test_ld {file ifmain trynosym displacement} { } if {$displacement == $case} { pass $test_displacement - # Permit multiple such messages. set displacement "FOUND-$displacement" - } elseif {$displacement != "FOUND-$case"} { + } else { fail $test_displacement } exp_continue -- cgit v1.1