gdb_test "cle" ".*Deleted breakpoints 2 1.*" "clear worked"
send_gdb "i b\n"
gdb_expect {
- -re ".*breakpoint.*breakpoint.*$gdb_prompt $" { fail "clear bp" }
- -re ".*3.*main.*31.*$gdb_prompt $" { pass "cleared bp at line before routine" }
- -re ".*$gdb_prompt $" { fail "info b" }
+ -re ".*breakpoint.*breakpoint.*$gdb_prompt $" {
+ fail "cleared bp at line before routine"
+ }
+ -re ".*3.*main.*31.*$gdb_prompt $" {
+ pass "cleared bp at line before routine"
+ }
+ -re ".*$gdb_prompt $" {
+ fail "cleared bp at line before routine (info b)"
+ }
}
# Test some other "clear" combinations
send_gdb "i b\n"
gdb_expect {
-re ".*breakpoint.*breakpoint.*$gdb_prompt $" {
- fail "didn't clear bps"
+ fail "all set to continue (didn't clear bps)"
}
-re ".*3.*main.*31.*$gdb_prompt $" {
pass "all set to continue"
}
-re ".*$gdb_prompt $" {
- fail "missing bp at end"
+ fail "all set to continue (missing bp at end)"
}
}
send_gdb "next\n"
gdb_expect {
-re ".*Unable to find return pc for this frame.*$gdb_prompt $" {
- fail "Old bug came back!"
+ fail "step out of main (Old bug came back!)"
gdb_test "n" ".*" ""
}
-re ".*in.*start.*$gdb_prompt $" {
}
-re ".*in .nope ().*$gdb_prompt $" {
# This is what happens on Solaris currently -sts 1999-08-25
- pass "step out of main on Solaris"
+ pass "step out of main (on Solaris)"
}
-re ".*in _int_reset ().*$gdb_prompt $" {
# This is what happens on Sanyo XStormy16
}
-re ".*in ..change.mode ().*$gdb_prompt $" {
# This is what happens on ARM in thumb mode -fn 2000-02-01
- pass "step out of main on ARM thumb"
+ pass "step out of main (on ARM thumb)"
}
-re ".*in.*\\\$START\\\$.*from.*dld.sl.*$gdb_prompt $" {
pass "step out of main"
}
- -re ".*$gdb_prompt $" { fail "step at end 2" }
- timeout { fail "hang or timeout on step at end 2" }
+ -re ".*in __wrap_main ().*$gdb_prompt $" {
+ pass "step out of main (status wrapper)"
+ }
+ -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)"
+ }
}
}
-re ".*Unable to find return pc for this frame.*$gdb_prompt $" {
pass "step out of main"
}
-re ".*in.*\\\$START\\\$.*from.*dld.sl.*$gdb_prompt $" {
- pass "step out of main 2"
+ pass "step out of main (2)"
}
-re ".*Program exited normally.*$gdb_prompt $" {
# This is what happens on Linux i86 (and I would expect others)
pass "step out of main"
}
-re ".*in.*currently asm.*$gdb_prompt $" {
- pass "step out of main into assembler"
+ pass "step out of main (into assembler)"
}
-re ".*Program received signal SIGTRAP.*$gdb_prompt $" {
pass "Cygmon stopped in ending trap."
}
- -re ".*$gdb_prompt $" { fail "step at end 1" }
- timeout { fail "hang or timeout on step at end 1" }
+ -re ".*$gdb_prompt $" { fail "step out of main (at end 1)" }
+ timeout { fail "step out of main (hang or timeout on step at end 1)" }
}
if {![target_info exists use_cygmon] || ![target_info use_cygmon]} {
# exit" message.
pass "step to end of run"
}
+ -re "Single.*EXIT code 0.*Program exited normally.*$gdb_prompt $" {
+ pass "step to end of run (status wrapper)"
+ }
-re ".*Single.*Program exited.*$gdb_prompt $" {
pass "step to end of run"
}
pass "No core dumped on quit"
} else {
if [ regexp "No such file or directory" $exec_output] {
- pass "ls: core: No core dumped on quit"
+ pass "ls: core (No core dumped on quit)"
} else {
remote_exec build "rm -f core"
- fail "Core dumped on quit"
+ fail "ls: core (Core dumped on quit)"
}
}
}