aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 14:43:22 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:16 -0700
commitcda0334434412d888443e9a98386255f2e0c2eab (patch)
treef8c03f634efa3dab4e58cb8888f47c073ea21ebe /gdb/ada-valprint.c
parente18312bb596fcc9b4df1d018038690df28a68b46 (diff)
downloadgdb-cda0334434412d888443e9a98386255f2e0c2eab.zip
gdb-cda0334434412d888443e9a98386255f2e0c2eab.tar.gz
gdb-cda0334434412d888443e9a98386255f2e0c2eab.tar.bz2
Turn value_copy into a method
This turns value_copy into a method of value. Much of this 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 a56c8a1..16e865c 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -1028,7 +1028,7 @@ ada_value_print_inner (struct value *val, struct ui_file *stream, int recurse,
type = ada_check_typedef (resolve_dynamic_type (type, view, address));
if (type != saved_type)
{
- val = value_copy (val);
+ val = val->copy ();
val->deprecated_set_type (type);
}