-# Copyright 1999-2017 Free Software Foundation, Inc.
+# Copyright 1999-2023 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
timeout { fail "annotation set at level 2 (timeout)" }
}
-gdb_test_multiple "run" "run until main breakpoint" {
+gdb_test_multiple "run" "run until main breakpoint, first time" {
-re "$main_line.*$gdb_prompt$" {
- pass "run until main breakpoint"
+ pass $gdb_test_name
}
}
"\032\032exited 0" \
"$inferior_exited_re normally." \
"" \
+ "\032\032thread-exited,id=\"1\",group-id=\"i1\"" \
+ "" \
"\032\032stopped" \
$gdb_prompt$]
gdb_test_multiple "continue" "continue until exit" {
# run program up to breakpoint.
#
-gdb_test_multiple "run" "run until main breakpoint" {
+gdb_test_multiple "run" "run until main breakpoint, second time" {
-re "$main_line.*$gdb_prompt$" {
- pass "run until main breakpoint"
+ pass $gdb_test_name
}
}
"\032\032post-prompt" \
"" \
"\032\032starting" \
- "\(${frames_invalid}\)*${breakpoints_invalid}" \
+ "\(${frames_invalid}\)*${breakpoints_invalid}\(${frames_invalid}\)*" \
"\032\032watchpoint 3" \
".*atchpoint 3: a.x" \
"" \