summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-02-16 22:25:50 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-02-16 22:25:50 +0000
commitc52de454a4a11ee8ff8836ff7bcab0178144d1d6 (patch)
tree842e640e680b0bf8ee5f662325f9e5ffd4a1a2b3 /gdb/valops.c
parentf221038b2089485bff2e007f80b7382028722a49 (diff)
downloadgdb-c52de454a4a11ee8ff8836ff7bcab0178144d1d6.tar.gz
2002-02-16 Daniel Jacobowitz <drow@mvista.com>
* valarith.c (value_x_unop): Fix decrement; support post-decrement. 2002-02-16 Daniel Jacobowitz <drow@mvista.com> From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>: * valops.c (value_arg_coerce): Don't take the address of a reference to convert an argument to a reference.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 748ba8fee08..4532da73aea 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1149,7 +1149,8 @@ value_arg_coerce (struct value *arg, struct type *param_type,
switch (TYPE_CODE (type))
{
case TYPE_CODE_REF:
- if (TYPE_CODE (arg_type) != TYPE_CODE_REF)
+ if (TYPE_CODE (arg_type) != TYPE_CODE_REF
+ && TYPE_CODE (arg_type) != TYPE_CODE_PTR)
{
arg = value_addr (arg);
VALUE_TYPE (arg) = param_type;