Fix watchpoint-stops-at-right-insn.exp
authorPedro Alves <palves@redhat.com>
Tue, 16 Sep 2014 13:27:57 +0000 (14:27 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 16 Sep 2014 13:27:57 +0000 (14:27 +0100)
Silly typo...

gdb/testsuite/
2014-09-16  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint-stops-at-right-insn.exp (test): Compare
software and hardware addresses, not software address against
itself.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp

index c2588d30317e31ba6990163d5fa96ee342d05e62..c06ba4dc5ca657f91d6fb20ecd3c90b81e019ee8 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-16  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/watchpoint-stops-at-right-insn.exp (test): Compare
+       software and hardware addresses, not software address against
+       itself.
+
 2014-09-16  Pedro Alves  <palves@redhat.com>
 
        * gdb.base/watchpoint-stops-at-right-insn.c: New file.
index 9ad60803af6e4f03afe74941845c1df85f2d5ec2..6039c4cb83f4f78ff0fe31bb269100272e2dbb1e 100644 (file)
@@ -168,7 +168,7 @@ proc test {always_inserted} {
 
        set hw_watch_pc [get_pc "get hw watchpoint PC"]
 
-       gdb_assert {$sw_watch_pc == $sw_watch_pc} "hw watchpoint stops at right instruction"
+       gdb_assert {$sw_watch_pc == $hw_watch_pc} "hw watchpoint stops at right instruction"
     }
 }