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:
parent
6ac373717c
commit
8ee511afd8
30 changed files with 101 additions and 110 deletions
|
@ -516,7 +516,7 @@ rust_language::value_print_inner
|
|||
that. */
|
||||
struct type *elttype = check_typedef (TYPE_TARGET_TYPE (type));
|
||||
CORE_ADDR addr = value_as_address (val);
|
||||
struct gdbarch *arch = get_type_arch (type);
|
||||
struct gdbarch *arch = type->arch ();
|
||||
|
||||
if (opts.addressprint)
|
||||
{
|
||||
|
@ -1919,7 +1919,7 @@ rust_language::emitchar (int ch, struct type *chtype,
|
|||
{
|
||||
if (!rust_chartype_p (chtype))
|
||||
generic_emit_char (ch, chtype, stream, quoter,
|
||||
target_charset (get_type_arch (chtype)));
|
||||
target_charset (chtype->arch ()));
|
||||
else if (ch == '\\' || ch == quoter)
|
||||
fprintf_filtered (stream, "\\%c", ch);
|
||||
else if (ch == '\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue