mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
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
This commit is contained in:
@ -1282,6 +1282,13 @@ struct type
|
||||
return this->main_type->m_owner.gdbarch;
|
||||
}
|
||||
|
||||
/* Return the type's architecture. For types owned by an
|
||||
architecture, that architecture is returned. For types owned by an
|
||||
objfile, that objfile's architecture is returned.
|
||||
|
||||
The return value is always non-nullptr. */
|
||||
gdbarch *arch () const;
|
||||
|
||||
/* * Return true if this is an integer type whose logical (bit) size
|
||||
differs from its storage size; false otherwise. Always return
|
||||
false for non-integer (i.e., non-TYPE_SPECIFIC_INT) types. */
|
||||
@ -2258,12 +2265,6 @@ extern struct type *alloc_type (struct objfile *);
|
||||
extern struct type *alloc_type_arch (struct gdbarch *);
|
||||
extern struct type *alloc_type_copy (const struct type *);
|
||||
|
||||
/* * Return the type's architecture. For types owned by an
|
||||
architecture, that architecture is returned. For types owned by an
|
||||
objfile, that objfile's architecture is returned. */
|
||||
|
||||
extern struct gdbarch *get_type_arch (const struct type *);
|
||||
|
||||
/* * This returns the target type (or NULL) of TYPE, also skipping
|
||||
past typedefs. */
|
||||
|
||||
@ -2661,9 +2662,9 @@ extern bool is_fixed_point_type (struct type *type);
|
||||
extern void allocate_fixed_point_type_info (struct type *type);
|
||||
|
||||
/* * When the type includes explicit byte ordering, return that.
|
||||
Otherwise, the byte ordering from gdbarch_byte_order for
|
||||
get_type_arch is returned. */
|
||||
|
||||
Otherwise, the byte ordering from gdbarch_byte_order for
|
||||
the type's arch is returned. */
|
||||
|
||||
extern enum bfd_endian type_byte_order (const struct type *type);
|
||||
|
||||
/* A flag to enable printing of debugging information of C++
|
||||
|
Reference in New Issue
Block a user