diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-28 10:12:10 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-28 10:12:10 -0500 |
commit | 8ee511afd84972c2019518725295440b3d2676bc (patch) | |
tree | 80875b064bc5fd0a182bda2c123be6aade583907 /gdb/ada-lang.c | |
parent | 6ac373717c28cc2befebd1e926dc5fcf39dda39f (diff) | |
download | binutils-8ee511afd84972c2019518725295440b3d2676bc.zip binutils-8ee511afd84972c2019518725295440b3d2676bc.tar.gz binutils-8ee511afd84972c2019518725295440b3d2676bc.tar.bz2 |
gdb: rename get_type_arch to type::arch
... and update all users.
gdb/ChangeLog:
* gdbtypes.h (get_type_arch): Rename to...
(struct type) <arch>: ... this, update all users.
Change-Id: I0e3ef938a0afe798ac0da74a9976bbd1d082fc6f
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index d0baf5a..70296f9 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -4525,13 +4525,12 @@ ada_convert_actual (struct value *actual, struct type *formal_type0) static CORE_ADDR value_pointer (struct value *value, struct type *type) { - struct gdbarch *gdbarch = get_type_arch (type); unsigned len = TYPE_LENGTH (type); gdb_byte *buf = (gdb_byte *) alloca (len); CORE_ADDR addr; addr = value_address (value); - gdbarch_address_to_pointer (gdbarch, type, buf, addr); + gdbarch_address_to_pointer (type->arch (), type, buf, addr); addr = extract_unsigned_integer (buf, len, type_byte_order (type)); return addr; } @@ -11234,7 +11233,7 @@ ada_is_system_address_type (struct type *type) static struct type * ada_scaling_type (struct type *type) { - return builtin_type (get_type_arch (type))->builtin_long_double; + return builtin_type (type->arch ())->builtin_long_double; } /* Assuming that TYPE is the representation of an Ada fixed-point |