Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] native-stdio-gdbserver.exp: pass "--" to switch
@ 2013-07-24 22:01 Doug Evans
  2013-07-25  7:37 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2013-07-24 22:01 UTC (permalink / raw)
  To: gdb-patches

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"
 	    }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-25  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-24 22:01 [commit] native-stdio-gdbserver.exp: pass "--" to switch Doug Evans
2013-07-25  7:37 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox