* lib/gdbserver-support.exp (gdbserver_download_current_prog): Rename
authorDoug Evans <dje@google.com>
Tue, 12 Jan 2010 00:50:26 +0000 (00:50 +0000)
committerDoug Evans <dje@google.com>
Tue, 12 Jan 2010 00:50:26 +0000 (00:50 +0000)
from gdbserver_download.  All callers updated.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.server/ext-attach.exp
gdb/testsuite/gdb.server/ext-run.exp
gdb/testsuite/lib/gdbserver-support.exp

index b0fcac7c314254670e0791a7637a6506f92174ad..ae6fda9e6011b5c857f30ee881b7a83d616df98f 100644 (file)
@@ -1,5 +1,8 @@
 2010-01-11  Doug Evans  <dje@google.com>
 
+       * lib/gdbserver-support.exp (gdbserver_download_current_prog): Rename
+       from gdbserver_download.  All callers updated.
+
        * gdb.server/ext-run.exp: "info os processes" requires xml support.
 
 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
index a00075be5d900b08114b33d063b1b9e6993f877b..196c56b7fd07e36fb2a30c4b4f03066bb9aa321d 100644 (file)
@@ -42,7 +42,7 @@ gdb_start
 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"
index 5797c802381c6b5eb8e3bfe869ec5d9ab71a7d07..9b140d6b66ac0a8b2d7fb7d1b359f02830d6b3e5 100644 (file)
@@ -40,7 +40,7 @@ gdb_start
 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"
index d4c5eb82d2276e91f5edacbf09d717f0572b3a63..5d53dfa7bb3f568826e7ad9016d29015b539eeb5 100644 (file)
@@ -139,8 +139,10 @@ proc skip_gdbserver_tests { } {
 
 # Download the currently loaded program to the target if necessary.
 # Return the target system filename.
+# NOTE: This was named "gdbserver_download", but that collides with the
+# dejagnu "download" API function when using load_generic_config "gdbserver".
 
-proc gdbserver_download { } {
+proc gdbserver_download_current_prog { } {
     global gdbserver_host_exec
     global gdbserver_host_mtime
     global gdbserver_server_exec
@@ -266,7 +268,7 @@ proc gdbserver_start { options arguments } {
 # Returns the target protocol and socket to connect to.
 
 proc gdbserver_spawn { child_args } {
-    set target_exec [gdbserver_download]
+    set target_exec [gdbserver_download_current_prog]
 
     # Fire off the debug agent.  This flavour of gdbserver takes as
     # arguments the port information, the name of the executable file to