This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] native-stdio-gdbserver.exp: pass "--" to switch
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 24 Jul 2013 15:01:01 -0700
- Subject: [commit] native-stdio-gdbserver.exp: pass "--" to switch
Hi.
It's odd that some Tcls don't complain, or I would have noticed this sooner.
Tested on amd64-linux and committed.
2013-07-24 Doug Evans <dje@google.com>
* boards/native-stdio-gdbserver.exp (${board}_build_remote_cmd): Pass
"--" to switch.
Index: boards/native-stdio-gdbserver.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/boards/native-stdio-gdbserver.exp,v
retrieving revision 1.8
diff -u -p -r1.8 native-stdio-gdbserver.exp
--- boards/native-stdio-gdbserver.exp 7 Jul 2013 08:52:39 -0000 1.8
+++ boards/native-stdio-gdbserver.exp 24 Jul 2013 21:54:46 -0000
@@ -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"
}