diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-05 18:00:40 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-05 18:00:40 +0000 |
commit | 86e4bafc3b0bb0148b95807d37b36aae14cdf56c (patch) | |
tree | fae9aeadc3fef5cca2aa8c66596edfa5c6a48169 /gdb/testsuite/gdb.base/break-interp.exp | |
parent | 3cd07d204baadc4b3d148a7494366fc92e7d42b1 (diff) | |
download | gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.zip gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.gz gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/break-interp.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/break-interp.exp | 22 |
1 files changed, 5 insertions, 17 deletions
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 |