diff options
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index fce3fc7..2aec487 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -525,6 +525,9 @@ exp : SIZEOF '(' type ')' %prec UNARY write_exp_elt_opcode (OP_LONG); } ; +exp : SIZEOF '(' exp ')' %prec UNARY + { write_exp_elt_opcode (UNOP_SIZEOF); } + exp : STRING { /* C strings are converted into array constants with an explicit null byte added at the end. Thus |