diff options
author | Pedro Alves <palves@redhat.com> | 2012-07-19 20:00:59 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-07-19 20:00:59 +0000 |
commit | 13e4e967fc5f88a64cd8e159d6fde927886291d9 (patch) | |
tree | 1b12fb255c68d733c6fd284b554836b2687db573 /gdb/testsuite/gdb.reverse/sigall-precsave.exp | |
parent | 961bd387ba464dbd902efdf2dd97b57f32835472 (diff) | |
download | gdb-13e4e967fc5f88a64cd8e159d6fde927886291d9.zip gdb-13e4e967fc5f88a64cd8e159d6fde927886291d9.tar.gz gdb-13e4e967fc5f88a64cd8e159d6fde927886291d9.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.reverse/sigall-precsave.exp')
-rw-r--r-- | gdb/testsuite/gdb.reverse/sigall-precsave.exp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp index ee3240b..d0d68a6 100644 --- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp +++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp @@ -300,13 +300,7 @@ set sig_supported 1 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 } @@ -330,12 +324,6 @@ foreach sig [lreverse $signals] { 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 } |