+2006-09-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ gdb/testsuite/
+ * gdb.base/commands.exp (bp_deleted_in_command_test)
+ (temporary_breakpoint_commands): Allow run.c without a pathname.
+ * gdb.base/ending-run.exp: Allow E32Main.
+
2006-09-15 Daniel Jacobowitz <dan@codesourcery.com>
gdb/testsuite/
# Create a breakpoint, and associate a command-list to it, with
# one command that deletes this breakpoint.
gdb_test "break factorial" \
- "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \
+ "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\." \
"breakpoint in bp_deleted_in_command_test"
send_gdb "commands\n"
gdb_run_cmd
gdb_expect {
- -re ".*factorial command-list executed.*1.*$gdb_prompt $" {
+ -re ".*factorial command-list executed.*$gdb_prompt $" {
pass "run factorial until breakpoint"
}
-re ".*$gdb_prompt $" {
# This test will verify that this commands list is executed when the
# breakpoint is hit.
gdb_test "tbreak factorial" \
- "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \
+ "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\." \
"breakpoint in temporary_breakpoint_commands"
send_gdb "commands\n"
gdb_run_cmd
gdb_expect {
- -re ".*factorial tbreak commands executed.*1.*$gdb_prompt $" {
+ -re ".*factorial tbreak commands executed.*$gdb_prompt $" {
pass "run factorial until temporary breakpoint"
}
timeout { fail "(timeout) run factorial until temporary breakpoint" }
# another `next' is necessary.
gdb_test "next" ".*in start_l ().*" "step out of main (on sh)"
}
+ -re "E32Main (.*).*$gdb_prompt $" {
+ # On SymbianOS there's a different function which calls main.
+ pass "step out of main (on SymbianOS)"
+ }
-re ".*$gdb_prompt $" { fail "step out of main (at end 2)" }
timeout {
fail "step out of main (hang or timeout on step at end 2)"