* 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 e35711b1a7f725058762bd7d31b6ff6e9c531db3..1df1669f2e2a745b50ca531ef34321f7f0cf3441 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 65183bad0f57f72ffbee0199d15e5ac8fa8e5b5a..3b99909527ac4cfe8fc6438b91999075ba865291 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"
            }