From be636754b785aa5b042991267c851af18ed5b6a9 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 11 Feb 2010 21:45:25 +0000 Subject: * 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. --- gdb/value.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/value.h') diff --git a/gdb/value.h b/gdb/value.h index 43b8c3b..1f2086e 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); -- cgit v1.1