aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2003-08-07 03:58:36 +0000
committerBen Elliston <bje@gnu.org>2003-08-07 03:58:36 +0000
commit360dd4f6262ca54ea33bf745ff5559a913748a46 (patch)
treec02ce8fa5d6c1fa19a2d089b4465d195ee058133 /config
parentd7b7156075df25716082174f6baf2ac0e163e939 (diff)
* Remove surplus semicolons in `for' commands.trailing-semicolons-after
Diffstat (limited to 'config')
-rw-r--r--config/base68k.exp4
-rw-r--r--config/ddb-ether.exp4
-rw-r--r--config/ddb.exp4
-rw-r--r--config/dos.exp6
-rw-r--r--config/gdb-comm.exp4
-rw-r--r--config/gdb_stub.exp6
-rw-r--r--config/i960.exp6
-rw-r--r--config/m68k-emc.exp4
-rw-r--r--config/vxworks.exp10
9 files changed, 24 insertions, 24 deletions
diff --git a/config/base68k.exp b/config/base68k.exp
index c76bd57..f8fb361 100644
--- a/config/base68k.exp
+++ b/config/base68k.exp
@@ -92,7 +92,7 @@ proc base68k_ld { dest prog } {
}
set got_p 0
- for { set tries 0; } { (! $got_p) && $tries < 5 } { incr tries } {
+ for { set tries 0 } { (! $got_p) && $tries < 5 } { incr tries } {
remote_send $dest "\r\n\r\n"
remote_expect $dest 5 {
-re "${shell_prompt}$" {
@@ -279,7 +279,7 @@ proc base68k_load { dest prog args } {
set shell_prompt [board_info $dest shell_prompt]
if { [llength $args] > 0 } {
- for { set x 0; } { $x < [llength $args] } { incr x ; } {
+ for { set x 0 } { $x < [llength $args] } { incr x } {
if { [lindex $args $x] != "" } {
verbose -log "Cannot pass parameters or input file to this target"
return [list "unsupported" ""]
diff --git a/config/ddb-ether.exp b/config/ddb-ether.exp
index 88c707e..336763c 100644
--- a/config/ddb-ether.exp
+++ b/config/ddb-ether.exp
@@ -27,7 +27,7 @@ proc ${board}_init { dest } {
set doing_ddb_init 1
remote_close $dest
- for { set x 0; } { $x < 3 } { incr x; } {
+ for { set x 0 } { $x < 3 } { incr x } {
set shell_id [remote_open $dest]
if { $shell_id == "" || $shell_id < 0 } {
remote_reboot $dest
@@ -54,7 +54,7 @@ proc ${board}_init { dest } {
}
proc ddb_ether_load { dest prog args } {
- for { set x 0; } { $x < 3 } { incr x } {
+ for { set x 0 } { $x < 3 } { incr x } {
set result [eval remote_spawn \{$dest\} \{$prog\} $args]
if { $result < 0 } {
remote_reboot $dest
diff --git a/config/ddb.exp b/config/ddb.exp
index 89ceb55..71a1a3f 100644
--- a/config/ddb.exp
+++ b/config/ddb.exp
@@ -41,9 +41,9 @@ proc ${board}_init { dest } {
if ![info exists doing_ddb_init] {
set doing_ddb_init 1
- for { set i 1; } { $i <= 3 } {incr i } {
+ for { set i 1 } { $i <= 3 } { incr i } {
remote_close $dest
- for { set x 0; } { $x < 3 } { incr x; } {
+ for { set x 0 } { $x < 3 } { incr x } {
set shell_id [remote_open $dest]
if { $shell_id == "" || $shell_id < 0 } {
remote_reboot $dest
diff --git a/config/dos.exp b/config/dos.exp
index 4a52113..8fc3b13 100644
--- a/config/dos.exp
+++ b/config/dos.exp
@@ -185,7 +185,7 @@ proc dos_exec { dest program pargs inp outp } {
# Make a DOS batch file; we use @echo off so we don't have to see
# the DOS command prompts and such.
- for { set i 0; } { $i < 2 } { incr i } {
+ for { set i 0 } { $i < 2 } { incr i } {
set exit_status -1
verbose "calling open"
set batfile [dos_prep_command $dest "$cmdline$inp$outpf"]
@@ -222,7 +222,7 @@ proc dos_start_command { cmdline dest } {
set shell_prompt [board_info $dest shell_prompt]
set prefix ""
set ok 0
- for {set i 0;} {$i <= 2 && ! $ok} {incr i;} {
+ for { set i 0 } {$i <= 2 && ! $ok} { incr i } {
set shell_id [remote_open $dest]
if { $shell_id != "" && $shell_id > 0 } {
remote_send $dest "echo k\r"
@@ -287,7 +287,7 @@ proc dos_spawn { dest program args } {
verbose "running $program on $dest"
set remotebat [dos_prep_command $dest $program]
- for { set x 0; } { $x < 3 } { incr x } {
+ for { set x 0 } { $x < 3 } { incr x } {
if { [dos_start_command $remotebat $dest] == "" } {
return [board_info $dest fileid]
}
diff --git a/config/gdb-comm.exp b/config/gdb-comm.exp
index 6c7d67e..9d20509 100644
--- a/config/gdb-comm.exp
+++ b/config/gdb-comm.exp
@@ -253,7 +253,7 @@ proc gdb_comm_load { dest prog args } {
global timeout
set argnames { "command-line arguments" "input file" "output file" }
- for { set x 0; } { $x < [llength $args] } { incr x } {
+ for { set x 0 } { $x < [llength $args] } { incr x } {
if { [lindex $args $x] != "" } {
return [list "unsupported" "no support for [lindex $argnames $x] on this target"]
}
@@ -431,7 +431,7 @@ proc gdb_comm_load { dest prog args } {
-re ".*$gdb_prompt $" {
remote_send host "signal 0\n"
remote_expect host 10 {
- -re "signal 0\[\r\n\]+" { exp_continue; }
+ -re "signal 0\[\r\n\]+" { exp_continue }
-re "Continuing(\\.| with no signal\\.)\[\r\n\]" {}
}
}
diff --git a/config/gdb_stub.exp b/config/gdb_stub.exp
index 746316c..4f88b7a 100644
--- a/config/gdb_stub.exp
+++ b/config/gdb_stub.exp
@@ -50,7 +50,7 @@ proc gdb_stub_restart { dest } {
gdb_stub_init $dest
- for {set x 1;} { $x < 4 } {incr x} {
+ for { set x 1 } { $x < 4 } {incr x} {
remote_close $dest
sleep 2
set command "$GDB -nw -nx"
@@ -394,7 +394,7 @@ proc gdb_stub_start { dest } {
}
proc gdb_stub_spawn { dest prog args } {
- for { set x 0; } { $x < 3 } { incr x } {
+ for { set x 0 } { $x < 3 } { incr x } {
if { [remote_ld $dest $prog] != 1 } {
return [list "fail" "remote_ld failed"]
}
@@ -475,7 +475,7 @@ proc gdb_stub_load { dest prog args } {
global gdb_prompt
set argnames { "command-line arguments" "input file" "output file" }
- for { set x 0; } { $x < [llength $args] } { incr x } {
+ for { set x 0 } { $x < [llength $args] } { incr x } {
if { [lindex $args $x] != "" } {
return [list "unsupported" "no support for [lindex $argnames $x] on this target"]
}
diff --git a/config/i960.exp b/config/i960.exp
index 1c722d6..c44c0f5 100644
--- a/config/i960.exp
+++ b/config/i960.exp
@@ -34,7 +34,7 @@ proc ${board}_init { dest } {
remote_close $dest
if { [remote_open $dest] != "" } {
- for { set tries 0; } { $tries < 7 && ! $done } { incr tries } {
+ for { set tries 0 } { $tries < 7 && ! $done } { incr tries } {
remote_send $dest "\n"
remote_expect $dest 1 {
-re "${prompt}" {
@@ -129,7 +129,7 @@ proc i960_ld { dest prog } {
proc i960_spawn { dest prog args } {
set shell_prompt [board_info $dest shell_prompt]
- for { set tries 0 ; } { $tries < 3 } { incr tries } {
+ for { set tries 0 } { $tries < 3 } { incr tries } {
set result [remote_ld $dest $prog]
if { $result == 0 } {
set comm "go [board_info $dest start_addr]"
@@ -185,7 +185,7 @@ proc i960_wait { dest timeout } {
}
proc i960_load { dest prog args } {
- for { set x 0; } { $x < 3 } { incr x; } {
+ for { set x 0 } { $x < 3 } { incr x } {
set id [eval remote_spawn \{$dest\} \{$prog\} $args]
if { $id < 0 } {
return [list "fail" ""]
diff --git a/config/m68k-emc.exp b/config/m68k-emc.exp
index d6db29b..60bda42 100644
--- a/config/m68k-emc.exp
+++ b/config/m68k-emc.exp
@@ -37,7 +37,7 @@ proc m68k_emc_board_connect { dest } {
set board_info($tname,m68k_connected) 1
set dos_host [board_info $dest dos_host]
- for { set x 0; } { $x < 3 } { incr x; } {
+ for { set x 0 } { $x < 3 } { incr x } {
set shell_id [remote_open $dos_host]
if { $shell_id == "" || $shell_id < 0 } {
remote_reboot $dos_host
@@ -54,7 +54,7 @@ proc m68k_emc_board_connect { dest } {
}
# Flush the buffer.
remote_expect $dos_host 2 {
- -re ".+" { exp_continue; }
+ -re ".+" { exp_continue }
}
# Get past first menu.
remote_send $dos_host "\n"
diff --git a/config/vxworks.exp b/config/vxworks.exp
index e47d5d8..233ae5a 100644
--- a/config/vxworks.exp
+++ b/config/vxworks.exp
@@ -69,7 +69,7 @@ proc ${board}_init { dest } {
remote_send $dest "\n\n"
remote_expect $dest 3 {
timeout {}
- -re ".+" { exp_continue; }
+ -re ".+" { exp_continue }
}
remote_send $dest "p\n"
remote_expect $dest 20 {
@@ -286,16 +286,16 @@ proc vxworks_ld { dest prog } {
# If the load fails we want `expect_out' stored in the log and this
# saves duplicating that code.
- for { set x 0 ; } { $x < 3 } {incr x; } {
+ for { set x 0 } { $x < 3 } { incr x } {
remote_send $dest "\n"
remote_expect $dest 30 {
- -re ".*$shell_prompt $" { set x 20; }
+ -re ".*$shell_prompt $" { set x 20 }
-re "\\\[VxWorks Boot\\\]:" {
remote_send $dest "@\n"
sleep 20
exp_continue
}
- timeout { return -1; }
+ timeout { return -1 }
}
}
@@ -462,7 +462,7 @@ proc vxworks_load {dest prog args} {
set outp ""
}
- for { set x 0; } { $x < 3 } { incr x } {
+ for { set x 0 } { $x < 3 } { incr x } {
set status [vxworks_ld $dest $prog]
if { $status >= 0 } {
if { $status > 0 } {