+2020-11-11 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdb.base/continue-after-aborted-step-over.exp: Add "breakpoint
+ always-inserted" axis.
+ (do_test): Add breakpoint_always_inserted parameter.
+
2020-11-10 Tom Tromey <tromey@adacore.com>
* gdb.ada/bias.exp: Update.
}
# DISPLACED indicates whether to use displaced-stepping.
-proc do_test {displaced} {
+proc do_test {displaced breakpoint_always_inserted} {
global gdb_prompt decimal
global srcfile binfile
clean_restart $binfile
gdb_test_no_output "set displaced-stepping $displaced"
+ gdb_test_no_output "set breakpoint always-inserted $breakpoint_always_inserted"
if ![runto_main] {
fail "run to main"
}
# Set a breakpoint that fails to insert.
- gdb_test "b *0" "Breakpoint $decimal at 0x0"
+ if { $breakpoint_always_inserted == "on" } {
+ gdb_test "b *0" "Breakpoint $decimal at 0x0.*"
+ } else {
+ gdb_test "b *0" "Breakpoint $decimal at 0x0"
+ }
gdb_test "continue" \
"Command aborted\\." \
# machinery. So make sure this runs with displaced stepping disabled,
# and for good measure, also try with displaced stepping enabled.
foreach_with_prefix displaced-stepping {"off" "on"} {
- do_test ${displaced-stepping}
+ foreach_with_prefix breakpoint-always-inserted {"off" "on"} {
+ do_test ${displaced-stepping} ${breakpoint-always-inserted}
+ }
}