From 4066e6467217a64d3c0517038dfc5dd2566355e1 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 11 Sep 2008 14:14:20 +0000 Subject: * value.h (unop_promote, binop_promote): Add prototypes. * eval.c (unop_promote, binop_promote): New functions. * valarith.c (unop_result_type, binop_result_type): Remove. (value_binop): Call binop_promote or unop_promote. Inline remaining parts of binop_result_type. Remove special code to truncate integer values for unsigned operations. (value_pos): Call unop_promote. Inline remaining parts of unop_result_type. (value_neg, value_complement): Likewise. --- gdb/value.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/value.h') diff --git a/gdb/value.h b/gdb/value.h index 5ff84b3..ba89858 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -446,6 +446,14 @@ extern CORE_ADDR parse_and_eval_address_1 (char **expptr); extern LONGEST parse_and_eval_long (char *exp); +extern void unop_promote (const struct language_defn *language, + struct gdbarch *gdbarch, + struct value **arg1); + +extern void binop_promote (const struct language_defn *language, + struct gdbarch *gdbarch, + struct value **arg1, struct value **arg2); + extern struct value *access_value_history (int num); extern struct value *value_of_internalvar (struct internalvar *var); -- cgit v1.1