diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-07 23:51:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-07 23:51:03 +0000 |
commit | 046245839052222161e5cb1233a0f4ca55cfffba (patch) | |
tree | 5f03d8e8715954687d0c45b965b47cf1e4e01595 /gdb/eval.c | |
parent | 55bc2f369cdb7533c18144abed052fce62e66000 (diff) | |
download | binutils-gdb-046245839052222161e5cb1233a0f4ca55cfffba.tar.gz |
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (deprecated_set_value_type): Declare.
* value.c (deprecated_set_value_type): Define.
* hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
* c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
* infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
* ax-gdb.c, tracepoint.c: Update.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/eval.c b/gdb/eval.c index 79a8ffd329e..4f1f25a6374 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -945,8 +945,8 @@ evaluate_subexp_standard (struct type *expect_type, if (gnu_runtime && (method != NULL)) { /* Function objc_msg_lookup returns a pointer. */ - argvec[0]->type - = lookup_function_type (lookup_pointer_type (value_type (argvec[0]))); + deprecated_set_value_type (argvec[0], + lookup_function_type (lookup_pointer_type (value_type (argvec[0])))); argvec[0] = call_function_by_hand (argvec[0], nargs + 2, argvec + 1); } @@ -1030,7 +1030,7 @@ evaluate_subexp_standard (struct type *expect_type, } else { - arg1->type = lookup_pointer_type (TYPE_TARGET_TYPE (value_type (arg1))); + deprecated_set_value_type (arg1, lookup_pointer_type (TYPE_TARGET_TYPE (value_type (arg1)))); } got_it: @@ -1688,7 +1688,7 @@ evaluate_subexp_standard (struct type *expect_type, type, this will ensure that value_subscript() returns the correct type value */ - arg1->type = tmp_type; + deprecated_set_value_type (arg1, tmp_type); return value_ind (value_add (value_coerce_array (arg1), arg2)); } |