* config/monitor.exp (gdb_target_monitor): Fix loop interator so
authorStu Grossman <grossman@cygnus>
Thu, 11 May 1995 22:04:20 +0000 (22:04 +0000)
committerStu Grossman <grossman@cygnus>
Thu, 11 May 1995 22:04:20 +0000 (22:04 +0000)
that loop eventually terminates.

gdb/testsuite/ChangeLog
gdb/testsuite/config/monitor.exp

index bf77410c6a3fbaba6f41e41fbc781aa03d95dbaf..ca4c1f18ad5f2a1d350e12a5eeb4c1eeaf7acf90 100644 (file)
@@ -1,3 +1,8 @@
+Thu May 11 15:02:24 1995  Stu Grossman  (grossman@andros.cygnus.com)
+
+       * config/monitor.exp (gdb_target_monitor):  Fix loop interator so
+       that loop eventually terminates.
+
 Wed May 10 17:57:35 1995  Stu Grossman  (grossman@andros.cygnus.com)
 
        * config/cpu32bug.exp, config/est.exp, config/hppro.exp,
index c977e1451ba998eb3374e28ae45e526c4339de8c..41ddea898e1266df3c9e2acba6170ba7a7c570b7 100644 (file)
@@ -36,7 +36,7 @@ proc gdb_target_monitor { } {
     global baud
 
     set timeout 60
-    for {set i 1} {$i <= 3} {incr i -1} {
+    for {set i 1} {$i <= 3} {incr i} {
        send "target $targetname $serialport\n"
        expect {
                -re "Remote target $targetname connected to.*$prompt $" {