OSDN Git Service

* lib/gdbserver-support.exp (find_gdbserver): Use $GDBSERVER if set.
authorDoug Evans <dje@google.com>
Mon, 12 May 2008 17:25:28 +0000 (17:25 +0000)
committerDoug Evans <dje@google.com>
Mon, 12 May 2008 17:25:28 +0000 (17:25 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdbserver-support.exp

index 8abe50d..f958980 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-12  Doug Evans  <dje@google.com>
+
+       * lib/gdbserver-support.exp (find_gdbserver): Use $GDBSERVER if set.
+
 2008-05-09  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/assign_1.exp: New testcase.
index 6fbaa22..0ec2500 100644 (file)
@@ -105,6 +105,11 @@ set portnum "2345"
 
 proc find_gdbserver { } {
   global GDB
+  global GDBSERVER
+
+  if [info exists GDBSERVER] {
+    return ${GDBSERVER}
+  }
 
   if [target_info exists gdb_server_prog] {
     return [target_info gdb_server_prog]