aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-valprint.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/ada-valprint.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/ada-valprint.c')
-rw-r--r--gdb/ada-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index 1f22ab6..761d315 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -1029,7 +1029,7 @@ ada_value_print_inner (struct value *val, struct ui_file *stream, int recurse,
if (type != saved_type)
{
val = value_copy (val);
- deprecated_set_value_type (val, type);
+ val->deprecated_set_type (type);
}
if (is_fixed_point_type (type))