diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-19 15:33:25 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-19 15:33:25 +0000 |
commit | 9eaf670568f57fc78fe40d30fc89ac5b442693fb (patch) | |
tree | 4feb162ee44c711926d1d7f72db9dd486f374cde /gdb/breakpoint.c | |
parent | b1e0c0fa45dd11ac221adf99789aaaa8517a7b47 (diff) | |
download | gdb-9eaf670568f57fc78fe40d30fc89ac5b442693fb.zip gdb-9eaf670568f57fc78fe40d30fc89ac5b442693fb.tar.gz gdb-9eaf670568f57fc78fe40d30fc89ac5b442693fb.tar.bz2 |
* ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
* breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
* c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
type_exp production where appropriate.
* eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
<UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
<UNOP_MEMVAL_TYPE>: New case.
(evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
(evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
* expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
<UNOP_MEMVAL_TYPE>: New case.
(dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
UNOP_REINTERPRET_CAST>: Update.
<UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
* parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
UNOP_REINTERPRET_CAST>: Update.
<UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
* stack.c (return_command): Also check for UNOP_CAST_TYPE.
* std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
constants.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 63cd8de..a122f6f 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -10171,6 +10171,10 @@ watchpoint_exp_is_const (const struct expression *exp) case UNOP_ADDR: case UNOP_HIGH: case UNOP_CAST: + + case UNOP_CAST_TYPE: + case UNOP_REINTERPRET_CAST: + case UNOP_DYNAMIC_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 |