* boards/native-stdio-gdbserver.exp (${board}_build_remote_cmd): Pass
authorDoug Evans <dje@google.com>
Wed, 24 Jul 2013 21:59:30 +0000 (21:59 +0000)
committerDoug Evans <dje@google.com>
Wed, 24 Jul 2013 21:59:30 +0000 (21:59 +0000)
"--" to switch.

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

index e35711b..1df1669 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-24  Doug Evans  <dje@google.com>
+
+       * boards/native-stdio-gdbserver.exp (${board}_build_remote_cmd): Pass
+       "--" to switch.
+
 2013-07-24  Yao Qi  <yao@codesourcery.com>
 
        * gdb.mi/mi-var-cmd.exp: If host is remote, use ${testfile} on
index 65183ba..3b99909 100644 (file)
@@ -60,7 +60,7 @@ proc ${board}_build_remote_cmd { cmd } {
 
     for { set i 1 } { $i < $len } { incr i } {
        set elm [lindex $cmd $i]
-       switch $elm {
+       switch -- $elm {
            --multi {
                set args "$args $elm"
            }