aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.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/valarith.c
parentaa9f4538ccbed2b5a84ece57c047e4f68a38c69e (diff)
downloadgdb-8181b7b65787041f16d08a5619789cece42b2553.zip
gdb-8181b7b65787041f16d08a5619789cece42b2553.tar.gz
gdb-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/valarith.c')
-rw-r--r--gdb/valarith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 854d061..e3c5160 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -94,7 +94,7 @@ value_ptradd (struct value *arg1, LONGEST arg2)
result = value_from_pointer (valptrtype,
value_as_address (arg1) + sz * arg2);
if (VALUE_LVAL (result) != lval_internalvar)
- set_value_component_location (result, arg1);
+ result->set_component_location (arg1);
return result;
}