diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-02-16 22:25:50 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-02-16 22:25:50 +0000 |
commit | 491b894671c11468bf3d6d3cdd1f8471767d1ea1 (patch) | |
tree | 67a292cbd22cf0a6ca3b1972b49b968af83245e3 /gdb/valops.c | |
parent | 8bf549a8c4cf576db65789048d14f6d803f59855 (diff) | |
download | gdb-491b894671c11468bf3d6d3cdd1f8471767d1ea1.zip gdb-491b894671c11468bf3d6d3cdd1f8471767d1ea1.tar.gz gdb-491b894671c11468bf3d6d3cdd1f8471767d1ea1.tar.bz2 |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 748ba8f..4532da7 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; |