-# Copyright 1999-2016 Free Software Foundation, Inc.
+# Copyright 1999-2020 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
return -1
}
-# are we on a target board? If so, don't run these tests.
-# note: this is necessary because we cannot use runto_main (which would
-# work for remote targets too) because of the different prompt we get
-# when using annotation level 2.
+# This testcase cannot use runto_main because of the different prompt
+# we get when using annotation level 2.
#
-if [is_remote target] then {
+if ![target_can_use_run_cmd] {
return 0
}
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" \
"" \