diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 08:31:48 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | f9ee742cd7f9ea4f6050599a4784cb162dcc49b5 (patch) | |
tree | 85e4e68f279677d9e587974482043b0ae64a596d /gdb/valops.c | |
parent | 81ae560ca4f0da47729dc37a889c2f2e01c4c84e (diff) | |
download | binutils-gdb-f9ee742cd7f9ea4f6050599a4784cb162dcc49b5.tar.gz |
Turn value_arch into method
This changes value_arch 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/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 1cac2496183..ae876b795d0 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1045,7 +1045,7 @@ read_value_memory (struct value *val, LONGEST bit_offset, gdb_byte *buffer, size_t length) { ULONGEST xfered_total = 0; - struct gdbarch *arch = get_value_arch (val); + struct gdbarch *arch = val->arch (); int unit_size = gdbarch_addressable_memory_unit_size (arch); enum target_object object; |