* config/monitor.exp (gdb_load): Remove redundant ';' in for loop.
* config/vx.exp (gdb_start): Likewise.
* gdb.base/printcmds.exp (test_print_repeats_10): Likewise.
* gdb.base/setvar.exp (test_set): Likewise.
* gdb.base/sigall.exp: Use foreach+lrange instead of for+continue.
* gdb.reverse/sigall-precsave.exp: Likewise.
* gdb.reverse/sigall-reverse.exp: Likewise.
+2012-07-19 Pedro Alves <palves@redhat.com>
+
+ * config/monitor.exp (gdb_load): Remove redundant ';' in for loop.
+ * config/vx.exp (gdb_start): Likewise.
+ * gdb.base/printcmds.exp (test_print_repeats_10): Likewise.
+ * gdb.base/setvar.exp (test_set): Likewise.
+ * gdb.base/sigall.exp: Use foreach+lrange instead of for+continue.
+ * gdb.reverse/sigall-precsave.exp: Likewise.
+ * gdb.reverse/sigall-reverse.exp: Likewise.
+
2012-07-19 Pedro Alves <palves@redhat.com>
* gdb.reverse/sigall-precsave.exp: Set a breakpoint at each signal
set last_gdb_file $arg;
- for { set j 1; } { $j <= 2 } {incr j; } {
+ for { set j 1 } { $j <= 2 } {incr j } {
if [target_info exists gdb,use_standard_load] {
gdb_target_exec;
if ![target_info exists gdb,no_push_conn] {
global reboot
# get a connection to the board
- for { set x 0; } { $x < 3 } { incr x } {
+ for { set x 0 } { $x < 3 } { incr x } {
set shell_id [remote_open target]
if { $shell_id > 0 } {
verbose "Spawn id for remote shell is $shell_id"
proc test_print_repeats_10 {} {
global gdb_prompt decimal
- for { set x 1; } { $x <= 16 } { incr x; } {
+ for { set x 1 } { $x <= 16 } { incr x } {
gdb_test_no_output "set print elements $x"
- for { set e 1; } { $e <= 16 } {incr e; } {
+ for { set e 1 } { $e <= 16 } {incr e } {
set v [expr $e - 1];
set command "p &ctable2\[${v}*16\]"
if { $x < $e } {
set count 1;
# Set up the variables.
- for {set x 0;} {$x < $length} {incr x;} {
+ for {set x 0} {$x < $length} {incr x} {
if { "[lindex $args $x]" != "" } {
set arg [lindex $args $x];
if { ($x == $final) || ([string first ".*" [lindex $args [expr $x + 1]]] >= 0) } {
runto gen_ABRT
-for {set i 0;} {$i < [llength $signals]} {incr i;} {
- # Skip the first.
- if { $i == 0 } {
- continue
- }
-
- set sig [lindex $signals $i]
+foreach sig [lrange $signals 1 end] {
test_one_sig $sig
}
set thissig "ABRT"
# test signal handling
-for {set i 0;} {$i < [llength $signals]} {incr i;} {
- # Skip the first.
- if { $i == 0 } {
- continue
- }
-
- set sig [lindex $signals $i]
+foreach sig [lrange $signals 1 end] {
test_one_sig $sig
}
set sig_supported 1
set thissig "ABRT"
-for {set i 0;} {$i < [llength $signals]} {incr i;} {
- # Skip the first.
- if { $i == 0 } {
- continue
- }
-
- set sig [lindex $signals $i]
+foreach sig [lrange $signals 1 end] {
test_one_sig $sig
}
set thissig "ABRT"
# test signal handling
-for {set i 0;} {$i < [llength $signals]} {incr i;} {
- # Skip the first.
- if { $i == 0 } {
- continue
- }
-
- set sig [lindex $signals $i]
+foreach sig [lrange $signals 1 end] {
test_one_sig $sig
}
set sig_supported 1
set thissig "ABRT"
-for {set i 0;} {$i < [llength $signals]} {incr i;} {
- # Skip the first.
- if { $i == 0 } {
- continue
- }
-
- set sig [lindex $signals $i]
+foreach sig [lrange $signals 1 end] {
test_one_sig $sig
}