mi_run_to_main
# Next over the hello() call which will produce lots of output
-send_gdb "47-exec-next\n"
+send_gdb "220-exec-next\n"
gdb_expect {
- -re "47\\^running\r\n$mi_gdb_prompt" {
+ -re "220\\^running\r\n$mi_gdb_prompt" {
pass "Started step over hello"
}
timeout {
}
}
-gdb_expect {
- -re "47\\*stopped.*$mi_gdb_prompt$" {
- pass "Finished step over hello"
- }
- timeout {
- fail "Finished step over hello (timeout)"
- }
-}
+mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" "14" "" \
+ "finished step over hello"
mi_gdb_exit
return 0