projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
[binutils-gdb.git]
/
gdb
/
p-exp.y
diff --git
a/gdb/p-exp.y
b/gdb/p-exp.y
index fce3fc7966521f76aa1c286b17a3dd24e84fb39b..2aec487463c672c78d6db11f1d2c06a6b0c94151 100644
(file)
--- 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