aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 08:24:35 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit81ae560ca4f0da47729dc37a889c2f2e01c4c84e (patch)
tree9f251c4fb80f169eab6c0ff556903fd1eb301700 /gdb/eval.c
parentd0c9791728caa0d3b3270a997c7fd97919976c97 (diff)
downloadgdb-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.zip
gdb-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.tar.gz
gdb-81ae560ca4f0da47729dc37a889c2f2e01c4c84e.tar.bz2
Turn deprecated_set_value_type into a method
This changes deprecated_set_value_type to be a method of value. Much of this patch was written by script. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index c24ff25..6fa3599 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2183,7 +2183,7 @@ eval_op_objc_msgcall (struct type *expect_type, struct expression *exp,
/* Function objc_msg_lookup returns a pointer. */
struct type *tem_type = called_method->type ();
tem_type = lookup_pointer_type (lookup_function_type (tem_type));
- deprecated_set_value_type (called_method, tem_type);
+ called_method->deprecated_set_type (tem_type);
called_method = call_function_by_hand (called_method, NULL, args);
}