From 2ec9a4f8d14053325856abcd5eb8c1b967bc1b1d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 9 Oct 2007 17:59:01 +0000 Subject: * solib-svr4.c (enable_break): Add the dynamic linker also if auxv succeeds. * gdb.server/server-run.exp: Test for dynamic linker symbols. --- gdb/testsuite/ChangeLog | 6 +++++- gdb/testsuite/gdb.server/server-run.exp | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2906055..27d0631 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,4 +1,8 @@ -2007/10/09 Pierre Muller +2007-10-09 Daniel Jacobowitz + + * gdb.server/server-run.exp: Test for dynamic linker symbols. + +2007-10-09 Pierre Muller * lib/gdb.exp (gdb_run_cmd): Move comment outside of gdb_expect call, to avoid interruption. diff --git a/gdb/testsuite/gdb.server/server-run.exp b/gdb/testsuite/gdb.server/server-run.exp index 8a5749d..f2a6125 100644 --- a/gdb/testsuite/gdb.server/server-run.exp +++ b/gdb/testsuite/gdb.server/server-run.exp @@ -38,5 +38,12 @@ gdb_load $binfile gdbserver_run "" gdb_reinitialize_dir $srcdir/$subdir +# We are now stopped at the program's entry point. On targets which use +# SVR4 dynamic linking, we should have automatically loaded symbols for +# the dynamic linker. +if { [istarget *-*-linux*] } { + gdb_test "info shared" "From.*To.*" "loaded dynamic linker" +} + gdb_breakpoint main gdb_test "continue" "Breakpoint.* main .*" "continue to main" -- cgit v1.1