-# Copyright 2010 Free Software Foundation, Inc.
+# Copyright 2010-2015 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
}
+proc test_it_break { ndx } {
+ global software_step
+
+ set line [gdb_get_line_number "@ Break ${ndx}"]
+
+ if { ! [gdb_breakpoint "${line}"] } {
+ unresolved "continue to breakpoint: test ${ndx}"
+ return
+ }
+
+ if { $software_step } {
+ gdb_continue_to_breakpoint "test ${ndx}" ".*@ Location ${ndx}.*"
+ } else {
+ gdb_continue_to_breakpoint "test ${ndx}" ".*@ Break ${ndx}.*"
+ }
+}
+
# If we are using software single-stepping in GDB, then GDB will not
# stop at conditional instructions with a false predicate during stepi.
# If we are using a simulator or debug interface with hardware single
for { set i 1 } { $i <= 8 } { incr i } {
test_it_block it_${i}
}
+
+gdb_breakpoint "*it_breakpoints"
+gdb_test "call it_breakpoints()" "Breakpoint.*"
+for { set i 1 } { $i <= 7 } { incr i } {
+ test_it_break ${i}
+}