+2001-08-18 Andrew Cagney <ac131313@redhat.com>
+
+ * mi0-until.exp, mi-until.exp, mi0-stepi.exp, mi-stepi.exp,
+ mi-simplerun.exp, mi0-simplerun.exp, mi0-return.exp,
+ mi-return.exp, mi0-console.exp, mi-console.exp: Recognize an
+ unexpected run-to-main response. Report as a fail.
+
2001-06-27 Andrew Cagney <ac131313@redhat.com>
* mi-disassemble.exp: Update to accept mi1 breakpoint tables.
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
pass "run to callee4"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to callee4 (2)"
+ }
timeout {
fail "run to callee4 (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
pass "run to callee4"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to callee4 (2)"
+ }
timeout {
fail "run to callee4 (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\{\},file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}