* gdb.base/call-strs.exp, gdb.base/default.exp,
authorDaniel Jacobowitz <drow@false.org>
Fri, 29 Jan 2010 15:38:38 +0000 (15:38 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 29 Jan 2010 15:38:38 +0000 (15:38 +0000)
gdb.base/ending-run.exp, gdb.base/finish.exp, gdb.base/funcargs.exp,
gdb.base/huge.exp, gdb.base/nodebug.exp, gdb.base/ptype.exp,
gdb.base/restore.exp, gdb.base/return.exp, gdb.base/setvar.exp,
gdb.base/watchpoints.exp, gdb.threads/gcore-thread.exp,
gdb.base/watchpoint-solib.exp: Save and restore timeout.
* gdb.base/ending-run.exp: Correct restore of timeout.
* gdb.base/page.exp: Remove unnecessary timeout setting.

17 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/call-strs.exp
gdb/testsuite/gdb.base/default.exp
gdb/testsuite/gdb.base/ending-run.exp
gdb/testsuite/gdb.base/finish.exp
gdb/testsuite/gdb.base/freebpcmd.exp
gdb/testsuite/gdb.base/funcargs.exp
gdb/testsuite/gdb.base/huge.exp
gdb/testsuite/gdb.base/nodebug.exp
gdb/testsuite/gdb.base/page.exp
gdb/testsuite/gdb.base/ptype.exp
gdb/testsuite/gdb.base/restore.exp
gdb/testsuite/gdb.base/return.exp
gdb/testsuite/gdb.base/setvar.exp
gdb/testsuite/gdb.base/watchpoint-solib.exp
gdb/testsuite/gdb.base/watchpoints.exp
gdb/testsuite/gdb.threads/gcore-thread.exp

index d92ded29722273d3d0dd3090d7bb9f5d5dac0281..d499ad71dd49c4f34f3d90f6cfe3d11f8f7cdec1 100644 (file)
@@ -1,3 +1,14 @@
+2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.base/call-strs.exp, gdb.base/default.exp,
+       gdb.base/ending-run.exp, gdb.base/finish.exp, gdb.base/funcargs.exp,
+       gdb.base/huge.exp, gdb.base/nodebug.exp, gdb.base/ptype.exp,
+       gdb.base/restore.exp, gdb.base/return.exp, gdb.base/setvar.exp,
+       gdb.base/watchpoints.exp, gdb.threads/gcore-thread.exp,
+       gdb.base/watchpoint-solib.exp: Save and restore timeout.
+       * gdb.base/ending-run.exp: Correct restore of timeout.
+       * gdb.base/page.exp: Remove unnecessary timeout setting.
+
 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/rec_return: New testcase.
index 1918ffee997a25d708ec384f945e2c380b8cd530..e03b881a22af1a54347ed5105942ce410ff2cc4c 100644 (file)
@@ -95,13 +95,14 @@ send_gdb "set print sevenbit-strings\n" ; gdb_expect -re "$gdb_prompt $"
 send_gdb "set print address off\n" ; gdb_expect -re "$gdb_prompt $"
 send_gdb "set width 0\n" ; gdb_expect -re "$gdb_prompt $"
 
-set timeout 120
-
 if ![runto_main] then {
     perror "couldn't run to breakpoint"
     continue
 }
 
+set prev_timeout $timeout
+set timeout 120
+
 #step
 send_gdb "step\n"
 gdb_expect {
@@ -263,4 +264,6 @@ if ![gdb_skip_stdio_test "call str_func(s,s,s,s,s,s,s,s)"] {
 }
 
 gdb_exit
-return 0
+
+set timeout $prev_timeout
+
index ab7a846631815050d076c89ad8fffe76e62f491c..9603fd4ae0a347dec7cbb3a99f3f4bbca5125c17 100644 (file)
@@ -20,6 +20,7 @@
 gdb_exit
 gdb_start
 
+set prev_timeout $timeout
 set timeout 60
 
 #
@@ -801,3 +802,5 @@ gdb_test "where" "No stack." "where"
 gdb_test "x" "Argument required .starting display address.*" "x"
 
 gdb_exit
+
+set timeout $prev_timeout
index bfe550d8c212c8a538e4e233d1066aad7547430b..7086c5d60a08a220cb35db79a6b10c5733e90393 100644 (file)
@@ -261,8 +261,6 @@ if {! [target_info exists use_gdb_stub]
        unsupported "continue after exit"
     }
 
-    set timeout $old_timeout
-
     if {$program_exited_normally} {
         gdb_test "n" ".*The program is not being run.*" "don't step after run"
     } elseif {$program_not_exited} {
@@ -285,6 +283,8 @@ if {! [target_info exists use_gdb_stub]
     }
 }
 
+set timeout $old_timeout
+
 #remote_exec build "rm -f ${binfile}"
 return 0
 
index 63f676880dc03e4a97775ff5e12655f66fe69798..29eaf9155b3d2a46394ea83418ac055a30404a67 100644 (file)
@@ -124,5 +124,7 @@ proc finish_tests { } {
     finish_abbreviation "fin"
 }
 
+set prev_timeout $timeout
 set timeout 30
 finish_tests
+set timeout $prev_timeout
index 9685d6387961670ba6dbf37b01daf8ccc3829cd7..3b46887f9ff088183763b9458ec85d8b0fec0ddd 100644 (file)
@@ -108,6 +108,7 @@ if {$i >= [llength $lines]} {
 
 gdb_run_cmd
 
+set prev_timeout $timeout
 set timeout 120
 
 gdb_test_multiple "" "run program with breakpoint commands" {
@@ -121,3 +122,5 @@ gdb_test_multiple "" "run program with breakpoint commands" {
         kfail "gdb/1489" "run program with breakpoint commands (GDB died)"
     }
 }
+
+set timeout $prev_timeout
index 3b3935ecbf4299ed0813e1e1f3b1b4759fa20024..4f0f25f5d9a5ed136580f44adaffabce621bf5e3 100644 (file)
@@ -1149,6 +1149,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+set prev_timeout $timeout
 if [istarget "mips*tx39-*"] {
     set timeout 300
 } else {
@@ -1223,3 +1224,5 @@ funcargs_reload
 localvars_in_indirect_call
 funcargs_reload
 test_stepping_over_trampolines
+
+set timeout $prev_timeout
index ed4d204c7a9cf97542dd3c4d16b9cc3efd82847a..2e903b6858a76eef244d2cc6a7cee93cfba78307 100644 (file)
@@ -50,6 +50,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+set prev_timeout $timeout
 set timeout 30
 
 if { ! [ runto_main ] } then {
@@ -59,3 +60,4 @@ if { ! [ runto_main ] } then {
 
 gdb_test "print a" ".1 = .0 .repeats \[0123456789\]+ times.." "print a very large data object"
 
+set timeout $prev_timeout
index 331834bc31a76b1aa1660306a4273cf7cb6df02c..4666316891d6e4261b5ee642827a36cb84afbbfd 100644 (file)
@@ -202,8 +202,10 @@ if [runto inner] then {
        } else {
            # We need to up this because this can be really slow on some boards.
            # (malloc() is called as part of the test).
-           set timeout 60;    
+           set prev_timeout $timeout
+           set timeout 60
            gdb_test {p/c array_index("abcdef",2)} " = 99 'c'"
+           set timeout $prev_timeout
        }
     }
     
index 4070bb2fccc8b6ff1524cf2bdb0267ffce16f5b6..2ea940b9b16a170f3be08255f8d0f4db05cd3fb0 100644 (file)
@@ -20,11 +20,6 @@ if $tracelevel {
     strace $tracelevel
 }
 
-global message
-global timeout
-
-set timeout 200
-
 gdb_exit
 gdb_start
 
index 94c2348193d0b60a220bf314b2ec3d59bfad6d7e..43e646d0ead6ce82114940dd0e7859a1066b7af2 100644 (file)
@@ -626,7 +626,8 @@ if [runto_main] then {
 
   # We need to up this because this can be really slow on some boards.
   # (malloc() is called as part of the test).
-  set timeout 60;
+  set prev_timeout $timeout
+  set timeout 60
 
   gdb_test "ptype \"abc\""     "type = char \\\[4\\\]"
   gdb_test "ptype {'a','b','c'}"       "type = char \\\[3\\\]"
@@ -637,6 +638,8 @@ if [runto_main] then {
   gdb_test "ptype {4,5,6}\[2\]"        "type = int"
   gdb_test "ptype *&{4,5,6}\[1\]"      "Attempt to take address of value not located in memory."
 
+  set timeout $prev_timeout
+
   # Test ptype of user register
   gdb_test "ptype \$pc" "void \\(\\*\\)\\(\\)" "ptype \$pc"
 }
index f7ab949e303f2149a0a2c9337cbe07beb12784f2..38625999a62e747ca602605ebd0f7a75f55ab140 100644 (file)
@@ -116,5 +116,7 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+set prev_timeout $timeout
 set timeout 30
 restore_tests
+set timeout $prev_timeout
index e0351ba31fedbef98e4515e601971bfa673da02e..66c8287f6fefb182f20aedc76c663cb79958b406 100644 (file)
@@ -91,5 +91,7 @@ proc return_tests { } {
     gdb_test "p tmp3" ".* = 5.*" "correct value returned double test (known problem with sparc solaris)"
 }
 
+set prev_timeout $timeout
 set timeout 30
 return_tests
+set timeout $prev_timeout
index 9750fc459e5ba9bd41b90b3d0b4b9d099c483e84..e79a734dcc998ab431ad16b337349ba41b27313c 100644 (file)
@@ -374,7 +374,8 @@ v_long_member = 3,.*v_float_member = 4,.*v_double_member = 5.*\}" \
 
 # We need to up this because this can be really slow on some boards.
 # (malloc() is called as part of the test).
-set timeout 60;
+set prev_timeout $timeout
+set timeout 60
 
 # Change the values
 test_set "set variable v_struct1 = {32, 33, 34, 35, 36, 37}" \
@@ -392,6 +393,8 @@ test_set "set variable v_struct1 = {'h', 1, 2, 3, 4.0, 5.0}" \
 v_long_member = 3,.*v_float_member = 4,.*v_double_member = 5.*\\}" \
   "set print structure #3"
 
+set timeout $prev_timeout
+
 # Test printing of enumeration bitfields.
 # GNU C supports them, some other compilers don't.
 
index 26c0aae9c2c0d93a29782b87014a0c2638f4d071..eb093cd03b2ad0679794277cfb08b0f67d095cb6 100644 (file)
@@ -83,6 +83,9 @@ gdb_test_multiple "break foo" "set pending breakpoint" {
      }
 }
 
+set prev_timeout $timeout
+set timeout 120
+
 gdb_test "continue" ".*Breakpoint 2.*foo.*" "continue to foo"
 gdb_test "watch g" "atchpoint 3: g" "set watchpoint on g"
 gdb_test "continue" ".*New value = 1.*" "continue to watchpoint hit"
@@ -90,7 +93,4 @@ rerun_to_main
 gdb_test "continue" ".*Breakpoint 2.*foo.*" "continue to foo again"
 gdb_test "continue" ".*New value = 1.*" "continue to watchpoint hit again"
 
-
-
-
-
+set timeout $prev_timeout
index 257a05bc2246e2d816a4c3d22fce6f3dcc1a3097..757d93d1eeff9e20b4d436c4671cf7ca5bd21fa0 100644 (file)
@@ -53,6 +53,7 @@ gdb_load $binfile
     gdb_test "watch ival1" "" ""
     gdb_test "watch ival3" "" ""
 
+    set prev_timeout $timeout
     set timeout 600
 
     gdb_test "cont" "Continuing.*\[Ww\]atchpoint.*ival1.*Old value = -1.*New value = 0.*ival1 = count; ival2 = count;.*" "watchpoint hit, first time"
@@ -102,4 +103,4 @@ gdb_load $binfile
     # Check that the hit count is reported correctly
     gdb_test "info break" ".*watchpoint\[ \t\]+keep\[ \t\]+y\[ \t\]+ival3\r\n\[ \t]+breakpoint already hit 5 times.*" "Watchpoint hit count is 5"
 
-   
+set timeout $prev_timeout
index 5ecfd0c181bae74dc2288f68a44e05c6ad7e44c5..24faba734353fb74f07763e2cd089fba4f2bfe97 100644 (file)
@@ -55,6 +55,7 @@ set horiz "\[^\n\r\]*"
 # regexp for newline
 set nl "\[\r\n\]+"
 
+set prev_timeout $timeout
 set timeout 30
 
 send_gdb "help gcore\n"
@@ -174,3 +175,4 @@ gdb_test "info threads" ".* thread2 .*" \
 gdb_test "info threads" ".*${nl}\\* ${horiz} thread2 .*" \
        "thread2 is current thread in corefile"
 
+set timeout $prev_timeout
This page took 0.044543 seconds and 4 git commands to generate.