if ![runto_main] then {
return 0
}
+ delete_breakpoints
+ gdb_py_test_silent_cmd "python bp1 = gdb.Breakpoint (\"main\", type=gdb.BP_BREAKPOINT, wp_class=gdb.WP_WRITE, internal=True )" \
+ "Set internal breakpoint" 0
+
+ set bp_num [get_python_valueof bp1.number "*DEFAULT*"]
+ set bp_addr [gdb_get_bp_addr $bp_num]
+
+ gdb_test "maint info break $bp_num" \
+ "$bp_num.*$bp_addr.*" \
+ "maint info breakpoint \$bp_num"
+
+ gdb_test "python gdb.execute(\'clear *$bp_addr\')" \
+ ".*No breakpoint at \\*$bp_addr.*" \
+ "clear internal breakpoint"
+
+ # Check again, make sure that GDB really didn't delete the internal breakpoint.
+ gdb_test "maint info break $bp_num" \
+ "$bp_num.*$bp_addr.*" \
+ "maint info breakpoint \$bp_num after clear"
+
delete_breakpoints
gdb_py_test_silent_cmd "python wp1 = gdb.Breakpoint (\"result\", type=gdb.BP_WATCHPOINT, wp_class=gdb.WP_WRITE, internal=True )" \
"Set watchpoint" 0