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/findvar.c | |
parent | 6ac373717c28cc2befebd1e926dc5fcf39dda39f (diff) | |
download | gdb-8ee511afd84972c2019518725295440b3d2676bc.zip gdb-8ee511afd84972c2019518725295440b3d2676bc.tar.gz gdb-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/findvar.c')
-rw-r--r-- | gdb/findvar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 79f0ad2..6abcd3a 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -158,7 +158,7 @@ extract_typed_address (const gdb_byte *buf, struct type *type) _("extract_typed_address: " "type is not a pointer or reference")); - return gdbarch_pointer_to_address (get_type_arch (type), type, buf); + return gdbarch_pointer_to_address (type->arch (), type, buf); } /* All 'store' functions accept a host-format integer and store a @@ -211,7 +211,7 @@ store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr) _("store_typed_address: " "type is not a pointer or reference")); - gdbarch_address_to_pointer (get_type_arch (type), type, buf, addr); + gdbarch_address_to_pointer (type->arch (), type, buf, addr); } /* Copy a value from SOURCE of size SOURCE_SIZE bytes to DEST of size DEST_SIZE |