diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-01 07:27:50 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:17 -0700 |
commit | 6c49729e593cd1577080b082be81fe113f8d7943 (patch) | |
tree | 689669836ab3ee33e0aa5d479de325d1a954d4d3 /gdb/eval.c | |
parent | e3fb3c4772d81a7deb26a3c1af253e9f01b07716 (diff) | |
download | binutils-6c49729e593cd1577080b082be81fe113f8d7943.zip binutils-6c49729e593cd1577080b082be81fe113f8d7943.tar.gz binutils-6c49729e593cd1577080b082be81fe113f8d7943.tar.bz2 |
Turn various value copying-related functions into methods
This patch turns a grab bag of value functions to methods of value.
These are done together because their implementations are
interrelated.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2570,7 +2570,7 @@ unop_extract_operation::evaluate (struct type *expect_type, error (_("length type is larger than the value type")); struct value *result = value::allocate (type); - value_contents_copy (result, 0, old_value, 0, type->length ()); + old_value->contents_copy (result, 0, 0, type->length ()); return result; } |