diff options
author | Pedro Alves <palves@redhat.com> | 2010-02-11 21:45:25 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-02-11 21:45:25 +0000 |
commit | be636754b785aa5b042991267c851af18ed5b6a9 (patch) | |
tree | 47af6d7426102b5b75f722530ba4b0d5deb96839 /gdb/value.h | |
parent | 10ef8d6a8dfca5731b2f4eb4dec945a299050e3c (diff) | |
download | binutils-gdb-be636754b785aa5b042991267c851af18ed5b6a9.tar.gz |
* ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
non-subscriptable types.
* valarith.c (binop_types_user_defined_p): New, abstracted out
from ...
(binop_user_defined_p): ... this.
* value.h (binop_types_user_defined_p): Declare.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index 43b8c3bc0e5..1f2086e9317 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -590,6 +590,10 @@ extern struct value *value_x_unop (struct value *arg1, enum exp_opcode op, extern struct value *value_fn_field (struct value **arg1p, struct fn_field *f, int j, struct type *type, int offset); +extern int binop_types_user_defined_p (enum exp_opcode op, + struct type *type1, + struct type *type2); + extern int binop_user_defined_p (enum exp_opcode op, struct value *arg1, struct value *arg2); |