From: Pedro Alves Date: Tue, 16 Sep 2014 13:27:57 +0000 (+0100) Subject: Fix watchpoint-stops-at-right-insn.exp X-Git-Tag: hjl/linux/release/2.24.51.0.4~1^2^2~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=635856f584de7af4b21bb72688c05cd6d9a0aec6;p=thirdparty%2Fbinutils-gdb.git Fix watchpoint-stops-at-right-insn.exp Silly typo... gdb/testsuite/ 2014-09-16 Pedro Alves * gdb.base/watchpoint-stops-at-right-insn.exp (test): Compare software and hardware addresses, not software address against itself. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c2588d30317..c06ba4dc5ca 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-09-16 Pedro Alves + + * gdb.base/watchpoint-stops-at-right-insn.exp (test): Compare + software and hardware addresses, not software address against + itself. + 2014-09-16 Pedro Alves * gdb.base/watchpoint-stops-at-right-insn.c: New file. diff --git a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp index 9ad60803af6..6039c4cb83f 100644 --- a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp +++ b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp @@ -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" } }