diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:16:14 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:16:14 +0000 |
commit | 0ab7ba45fa26e78626617b4d90725fc921c74f69 (patch) | |
tree | d6297abeb32140db80712332093d7dbc9f6118e6 /gdb/valarith.c | |
parent | f7c79c4197b4e8003d9c9828b2e22df6444c5860 (diff) | |
download | gdb-0ab7ba45fa26e78626617b4d90725fc921c74f69.zip gdb-0ab7ba45fa26e78626617b4d90725fc921c74f69.tar.gz gdb-0ab7ba45fa26e78626617b4d90725fc921c74f69.tar.bz2 |
* value.h (coerce_enum, coerce_number): Remove prototypes.
* value.c (coerce_enum, coerce_number): Remove.
* valarith.c (value_x_binop): Do not call coerce_enum.
(value_x_unop): Likewise.
(value_logical_not): Call coerce_array instead of coerce_number.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r-- | gdb/valarith.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index b4bce73..b9b3657 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -359,8 +359,6 @@ value_x_binop (struct value *arg1, struct value *arg2, enum exp_opcode op, arg1 = coerce_ref (arg1); arg2 = coerce_ref (arg2); - arg1 = coerce_enum (arg1); - arg2 = coerce_enum (arg2); /* now we know that what we have to do is construct our arg vector and find the right function to call it with. */ @@ -520,7 +518,6 @@ value_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside) int static_memfuncp, nargs; arg1 = coerce_ref (arg1); - arg1 = coerce_enum (arg1); /* now we know that what we have to do is construct our arg vector and find the right function to call it with. */ @@ -1287,7 +1284,7 @@ value_logical_not (struct value *arg1) const gdb_byte *p; struct type *type1; - arg1 = coerce_number (arg1); + arg1 = coerce_array (arg1); type1 = check_typedef (value_type (arg1)); if (TYPE_CODE (type1) == TYPE_CODE_FLT) |