# First of all, remove all previous breakpoints if there were any,
# and then verify that we do not have any breakpoint lying around.
gdb_test_no_output "delete" \
- "remove all breakpoints ($alias)"
+ "remove all breakpoints"
gdb_test "info break" \
"No breakpoints or watchpoints." \
- "info break after removing break on main"
+ "info break after clearing breakpoints"
+
-
# Now, insert a breakpoint at an easy location, and then remove it
# using $alias. We verified that the removal worked by checking
# the list of breakpoints.
gdb_test "break -q main" \
"Breakpoint.*at.* file .*$srcfile, line.*" \
- "breakpoint insertion ($alias)"
-
+ "breakpoint insertion"
+
gdb_test_no_output "$alias \$bpnum" \
- "Remove last breakpoint ($alias)"
-
+ "Remove last breakpoint"
+
gdb_test "info break" \
"No breakpoints or watchpoints." \
- "info break after removing break on main ($alias)"
+ "info break after removing break on main"
}
# Test various shortcut forms of the "delete" command.
-test_delete_alias "del"
-test_delete_alias "d"
-
+foreach_with_prefix alias {"del" "d"} {
+ test_delete_alias $alias
+}