aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 16:26:38 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:17 -0700
commit8181b7b65787041f16d08a5619789cece42b2553 (patch)
treef8ceffd162c02abca61280ba5d8c1cfdac3d70dc /gdb/valops.c
parentaa9f4538ccbed2b5a84ece57c047e4f68a38c69e (diff)
downloadbinutils-8181b7b65787041f16d08a5619789cece42b2553.zip
binutils-8181b7b65787041f16d08a5619789cece42b2553.tar.gz
binutils-8181b7b65787041f16d08a5619789cece42b2553.tar.bz2
Turn set_value_component_location into method
This turns set_value_component_location into a method of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index b088a5d..137134a 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -4087,7 +4087,7 @@ value_slice (struct value *array, int lowbound, int length)
type_length_units (slice_type));
}
- set_value_component_location (slice, array);
+ slice->set_component_location (array);
slice->set_offset (array->offset () + offset);
}