allow py-breakpoint.exp to work with software watchpoints
authorJoel Brobecker <brobecker@gnat.com>
Tue, 22 Feb 2011 16:39:56 +0000 (16:39 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 22 Feb 2011 16:39:56 +0000 (16:39 +0000)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-breakpoint.exp

index 5d524d4c088216ee3085045216dbfc38f847d5d5..599a182844175d7a7ac933981bbbbba8694df6d5 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * 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.
+
 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.python/py-breakpoint.exp: Remove unnecessary call to
index b9f8c4ad79cd0202547f1334de164d5ba47ee9d7..8f5818125a219f685740d04293f5db21feb5f868 100644 (file)
@@ -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"