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/breakpoint.c | |
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/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index fed62d6..3740157 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -8831,6 +8831,7 @@ watchpoint_exp_is_const (const struct expression *exp) case UNOP_COMPLEMENT: case UNOP_ADDR: case UNOP_HIGH: + case UNOP_CAST: /* Unary, binary and ternary operators: We have to check their operands. If they are constant, then so is the result of that operation. For instance, if A and B are |