gdb/testsuite:
authorYao Qi <yao@codesourcery.com>
Fri, 22 Jun 2012 07:45:57 +0000 (07:45 +0000)
committerYao Qi <yao@codesourcery.com>
Fri, 22 Jun 2012 07:45:57 +0000 (07:45 +0000)
* boards/native-gdbserver.exp: New proc ${board}_exec.
* boards/native-stdio-gdbserver.exp: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/boards/native-gdbserver.exp
gdb/testsuite/boards/native-stdio-gdbserver.exp

index ad37b0a..d101c23 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-22  Yao Qi  <yao@codesourcery.com>
+
+       * boards/native-gdbserver.exp: New proc ${board}_exec.
+       * boards/native-stdio-gdbserver.exp: Likewise.
+
 2012-06-21  Tom Tromey  <tromey@redhat.com>
 
        * lib/gdb.exp (skip_altivec_tests, skip_vsx_tests)
index 5fa02a4..89702df 100644 (file)
@@ -64,6 +64,18 @@ proc ${board}_spawn { board cmd } {
     return $result
 }
 
+proc ${board}_exec { hostname program args } {
+    global board_info
+
+    set baseboard [lindex [split $hostname "/"] 0]
+
+    set board_info($baseboard,isremote) 0
+    set result [remote_exec $hostname $program $args]
+    set board_info($baseboard,isremote) 1
+
+    return $result
+}
+
 proc ${board}_download { board host dest } {
     return $host
 }
index 703f370..9804289 100644 (file)
@@ -126,6 +126,18 @@ proc ${board}_spawn { board cmd } {
     return $result
 }
 
+proc ${board}_exec { hostname program args } {
+    global board_info
+
+    set baseboard [lindex [split $hostname "/"] 0]
+
+    set board_info($baseboard,isremote) 0
+    set result [remote_exec $hostname $program $args]
+    set board_info($baseboard,isremote) 1
+
+    return $result
+}
+
 proc ${board}_download { board host dest } {
     return $host
 }