diff options
author | Sterling Augustine <saugustine@google.com> | 2012-02-22 18:20:38 +0000 |
---|---|---|
committer | Sterling Augustine <saugustine@google.com> | 2012-02-22 18:20:38 +0000 |
commit | aeaa24743cab0dbfb320ab5d4539ea3e4ad898b1 (patch) | |
tree | eeba4a1b5bca6ae632f43d8e52b039c19926190c /gdb/testsuite/gdb.base/watchpoint.exp | |
parent | 289b70fe01fd0cc2ee295f54bb38250d2a83cecc (diff) | |
download | gdb-aeaa24743cab0dbfb320ab5d4539ea3e4ad898b1.zip gdb-aeaa24743cab0dbfb320ab5d4539ea3e4ad898b1.tar.gz gdb-aeaa24743cab0dbfb320ab5d4539ea3e4ad898b1.tar.bz2 |
ChangeLog
2012-02-22 Sterling Augustine <saugustine@google.com>
PR 13689:
* breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
testsuite/ChangeLog
2012-02-22 Sterling Augustine <saugustine@google.com>
* gdb.base/watchpoint.exp (test_constant_watchpoint): Add test for
constant with cast.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp index 7200f71..15482fa 100644 --- a/gdb/testsuite/gdb.base/watchpoint.exp +++ b/gdb/testsuite/gdb.base/watchpoint.exp @@ -559,6 +559,8 @@ proc test_watchpoint_and_breakpoint {} { proc test_constant_watchpoint {} { gdb_test "watch 5" "Cannot watch constant value `5'." "number is constant" + gdb_test "watch (int *)5" "Cannot watch constant value `\\(int \\*\\)5'." \ + "number with cast is constant" gdb_test "watch marker1" "Cannot watch constant value `marker1'." \ "marker1 is constant" gdb_test "watch count + 6" ".*atchpoint \[0-9\]+: count \\+ 6" |