+2009-10-22 Michael Snyder <msnyder@vmware.com>
+
+ * gdb.reverse/consecutive-reverse.exp: Substitute gdb_test_multiple
+ for gdb_expect. Adjust one test's expect strings for the new
+ format of disassemble.
+ * gdb.reverse/finish-reverse.exp: Delete 'return'.
+ * gdb.reverse/sigall-reverse.exp: Substitute gdb_test for
+ gdb_test_multiple.
+ * gdb.reverse/step-reverse.exp: Delete 'return'.
+ * gdb.reverse/until-reverse.exp: Delete blank lines.
+ * gdb.reverse/watch-reverse.exp: Delete blank lines.
+
2009-10-21 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.base/consecutive.exp: Adjust.
global foo2_addr
global gdb_prompt
- -re "($hex).*\[\r\n\]+($hex).*$gdb_prompt $" {
+ -re "=> ($hex).*\[\r\n\]+ ($hex).*$gdb_prompt $" {
set foo1_addr $expect_out(1,string)
set foo2_addr $expect_out(2,string)
pass "get breakpoint address for foo"
gdb_test "break \*$foo2_addr" "Breakpoint $decimal at $foo2_addr: file .*" \
"set bp, 2nd instr"
-send_gdb "step\n"
-gdb_expect {
+set testmsg "stopped at bp, 2nd instr"
+gdb_test_multiple "step" $testmsg {
-re "Breakpoint $decimal, ($hex) in foo.*$gdb_prompt $" {
set stop_addr $expect_out(1,string)
if [eval expr "$foo2_addr == $stop_addr"] then {
fail "stopped at bp, 2nd instr (wrong address)"
}
}
- -re ".*$gdb_prompt $" {
- fail "stopped at bp, 2nd instr"
- }
- timeout {
- fail "stopped at bp, 2nd instr (timeout)"
-
- }
}
###
pass "$test_msg"
}
}
-
-return 0
"get signal TERM"
gdb_test "continue" "Breakpoint.*handle_TERM.*" "send signal TERM"
-set testmsg "continue to sigall exit"
-gdb_test_multiple "continue" $testmsg {
- -re ".*Do you want to stop the program.*$" {
- send_gdb "yes\n"
- exp_continue
- }
- -re "$gdb_prompt " {
- pass $testmsg
- }
-}
+gdb_test "continue" "Program received .*" "continue to sigall exit" \
+ "The next instruction is syscall exit_group.* program...y. or n. " \
+ "yes"
test_one_sig_reverse TERM
test_one_sig_reverse 63
# gdb_test "set exec-dir forward" "" "set forward execution"
# gdb_continue_to_end "step-reverse.exp"
-return 0
gdb_test "until $bp_location7" \
"factorial .value=6..*$srcfile:$bp_location7.*" \
"reverse-until to entry of factorial"
-
-
gdb_test "continue" \
".*\[Ww\]atchpoint.*ival3.*Old value = 0.*New value = -1.*ival3 = count; ival4 = count;.*" \
"watchpoint hit in reverse, fifth time"
-
-
-return 0