OSDN Git Service

2001-03-16 Orjan Friberg <orjanf@axis.com>
authorOrjan Friberg <orjanf@axis.com>
Fri, 16 Mar 2001 09:05:16 +0000 (09:05 +0000)
committerOrjan Friberg <orjanf@axis.com>
Fri, 16 Mar 2001 09:05:16 +0000 (09:05 +0000)
* gdb.base/signals.exp: Set count to 0 explicitly.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/signals.exp

index e4eb68b..023218b 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-16  Orjan Friberg  <orjanf@axis.com>
+
+       * gdb.base/signals.exp: Set count to 0 explicitly.
+
 2001-03-15  Mark Salter  <msalter@redhat.com>
 
        * config/monitor.exp (gdb_target_cmd): Add explicit error return.
index d64c5c6..2bf7192 100644 (file)
@@ -370,6 +370,9 @@ gdb_expect {
 }
 
 if [runto_main] then {
+    # Since count is a static variable outside main, runto_main
+    # is no guarantee that count will be 0 at this point.
+    gdb_test "set variable count = 0" ""
     gdb_test "break handler if 0" "Breakpoint \[0-9\]+ .*"
     gdb_test "set \$handler_breakpoint_number = \$bpnum" ""