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/printcmd.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/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 2e56d28..332d971 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -304,7 +304,7 @@ print_formatted (struct value *val, int size, /* We often wrap here if there are long symbolic names. */ wrap_here (" "); next_address = (value_address (val) - + gdb_print_insn (get_type_arch (type), + + gdb_print_insn (type->arch (), value_address (val), stream, &branch_delay_insns)); return; @@ -331,7 +331,7 @@ print_formatted (struct value *val, int size, static struct type * float_type_from_length (struct type *type) { - struct gdbarch *gdbarch = get_type_arch (type); + struct gdbarch *gdbarch = type->arch (); const struct builtin_type *builtin = builtin_type (gdbarch); if (TYPE_LENGTH (type) == TYPE_LENGTH (builtin->builtin_float)) @@ -353,7 +353,7 @@ print_scalar_formatted (const gdb_byte *valaddr, struct type *type, const struct value_print_options *options, int size, struct ui_file *stream) { - struct gdbarch *gdbarch = get_type_arch (type); + struct gdbarch *gdbarch = type->arch (); unsigned int len = TYPE_LENGTH (type); enum bfd_endian byte_order = type_byte_order (type); @@ -2370,7 +2370,7 @@ printf_wide_c_string (struct ui_file *stream, const char *format, { const gdb_byte *str; size_t len; - struct gdbarch *gdbarch = get_type_arch (value_type (value)); + struct gdbarch *gdbarch = value_type (value)->arch (); struct type *wctype = lookup_typename (current_language, "wchar_t", NULL, 0); int wcwidth = TYPE_LENGTH (wctype); @@ -2438,7 +2438,7 @@ printf_floating (struct ui_file *stream, const char *format, { /* Parameter data. */ struct type *param_type = value_type (value); - struct gdbarch *gdbarch = get_type_arch (param_type); + struct gdbarch *gdbarch = param_type->arch (); /* Determine target type corresponding to the format string. */ struct type *fmt_type; @@ -2644,8 +2644,7 @@ ui_printf (const char *arg, struct ui_file *stream) break; case wide_char_arg: { - struct gdbarch *gdbarch - = get_type_arch (value_type (val_args[i])); + struct gdbarch *gdbarch = value_type (val_args[i])->arch (); struct type *wctype = lookup_typename (current_language, "wchar_t", NULL, 0); struct type *valtype; |