+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.
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 {
}
gdb_exit
-return 0
+
+set timeout $prev_timeout
+
gdb_exit
gdb_start
+set prev_timeout $timeout
set timeout 60
#
gdb_test "x" "Argument required .starting display address.*" "x"
gdb_exit
+
+set timeout $prev_timeout
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} {
}
}
+set timeout $old_timeout
+
#remote_exec build "rm -f ${binfile}"
return 0
finish_abbreviation "fin"
}
+set prev_timeout $timeout
set timeout 30
finish_tests
+set timeout $prev_timeout
gdb_run_cmd
+set prev_timeout $timeout
set timeout 120
gdb_test_multiple "" "run program with breakpoint commands" {
kfail "gdb/1489" "run program with breakpoint commands (GDB died)"
}
}
+
+set timeout $prev_timeout
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
+set prev_timeout $timeout
if [istarget "mips*tx39-*"] {
set timeout 300
} else {
localvars_in_indirect_call
funcargs_reload
test_stepping_over_trampolines
+
+set timeout $prev_timeout
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
+set prev_timeout $timeout
set timeout 30
if { ! [ runto_main ] } then {
gdb_test "print a" ".1 = .0 .repeats \[0123456789\]+ times.." "print a very large data object"
+set timeout $prev_timeout
} 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
}
}
strace $tracelevel
}
-global message
-global timeout
-
-set timeout 200
-
gdb_exit
gdb_start
# 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\\\]"
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"
}
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
+set prev_timeout $timeout
set timeout 30
restore_tests
+set timeout $prev_timeout
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
# 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}" \
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.
}
}
+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"
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
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"
# 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
# regexp for newline
set nl "\[\r\n\]+"
+set prev_timeout $timeout
set timeout 30
send_gdb "help gcore\n"
gdb_test "info threads" ".*${nl}\\* ${horiz} thread2 .*" \
"thread2 is current thread in corefile"
+set timeout $prev_timeout