mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
allow py-breakpoint.exp to work with software watchpoints
I noticed that the last "maint info breakpoints" test expects the output to contain: .*hw watchpoint.* But some platforms do not have hw watchpoints (for instance, the sim on erc32 doesn't). So I changed the expected output to accept either. gdb/testsuite/ChangeLog: * gdb.python/py-breakpoint.exp: Fix the expected output of one of the "maint info breakpoints" tests to accept the output generated on platforms that do not have hardware watchpoints.
This commit is contained in:
@ -193,5 +193,5 @@ if ![runto_main] then {
|
||||
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
|
||||
gdb_test "info breakpoints" "No breakpoints or watchpoints.*" "Check info breakpoints does not show invisible breakpoints"
|
||||
gdb_test "maint info breakpoints" ".*hw watchpoint.*result.*" "Check maint info breakpoints shows invisible breakpoints"
|
||||
gdb_test "maint info breakpoints" ".*watchpoint.*result.*" "Check maint info breakpoints shows invisible breakpoints"
|
||||
gdb_test "continue" ".*\[Ww\]atchpoint.*result.*Old value = 0.*New value = 25.*" "Test watchpoint write"
|
||||
|
Reference in New Issue
Block a user