# This testcase is part of GDB, the GNU debugger.
-# Copyright 2007, 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2007, 2009, 2010, 2011 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
gdb_load $binfile
gdb_reinitialize_dir $srcdir/$subdir
-set target_exec [gdbserver_download]
+set target_exec [gdbserver_download_current_prog]
gdbserver_start_extended
-gdb_test "set remote exec-file $target_exec" "" "set remote exec-file"
+gdb_test_no_output "set remote exec-file $target_exec" "set remote exec-file"
# Start the program running and then wait for a bit, to be sure
# that it can be attached to.
gdb_test "backtrace" ".*main.*" "backtrace 2"
gdb_test "kill" "" "kill" "Kill the program being debugged.*" "y"
-gdb_test "monitor exit" ""
+gdb_test_no_output "monitor exit"