# This testcase is part of GDB, the GNU debugger.
-# Copyright 2005, 2007 Free Software Foundation, Inc.
+# Copyright 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
set testfile "server"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/server-run
if { [skip_gdbserver_tests] } {
return 0
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"