diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-26 13:26:58 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-05 11:08:44 -0700 |
commit | a1ea4cacd4ac309cdcd13184d225190c80d628ee (patch) | |
tree | 3f3fa1fd6b900ca571f3702e083ce5f35c9b5ad1 /gdb/mips-tdep.c | |
parent | d53fd721a18f8c827aa69ffbd15abd99641b5e20 (diff) | |
download | gdb-a1ea4cacd4ac309cdcd13184d225190c80d628ee.zip gdb-a1ea4cacd4ac309cdcd13184d225190c80d628ee.tar.gz gdb-a1ea4cacd4ac309cdcd13184d225190c80d628ee.tar.bz2 |
Use filtered output for gdbarch dump
This changes gdbarch dumping to use filtered output. This seems a bit
better to me, both on the principle that this is an ordinary command,
and because the output can be voluminous, so it may be nice to stop in
the middle.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 7f646d2..7f80183 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -8929,34 +8929,34 @@ mips_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) } /* Determine the size of a pointer. */ ef_mips_32bitmode = (tdep->elf_flags & EF_MIPS_32BITMODE); - fprintf_unfiltered (file, - "mips_dump_tdep: tdep->elf_flags = 0x%x\n", - tdep->elf_flags); - fprintf_unfiltered (file, - "mips_dump_tdep: ef_mips_32bitmode = %d\n", - ef_mips_32bitmode); - fprintf_unfiltered (file, - "mips_dump_tdep: ef_mips_arch = %d\n", - ef_mips_arch); - fprintf_unfiltered (file, - "mips_dump_tdep: tdep->mips_abi = %d (%s)\n", - tdep->mips_abi, mips_abi_strings[tdep->mips_abi]); - fprintf_unfiltered (file, - "mips_dump_tdep: " - "mips_mask_address_p() %d (default %d)\n", - mips_mask_address_p (tdep), - tdep->default_mask_address_p); + fprintf_filtered (file, + "mips_dump_tdep: tdep->elf_flags = 0x%x\n", + tdep->elf_flags); + fprintf_filtered (file, + "mips_dump_tdep: ef_mips_32bitmode = %d\n", + ef_mips_32bitmode); + fprintf_filtered (file, + "mips_dump_tdep: ef_mips_arch = %d\n", + ef_mips_arch); + fprintf_filtered (file, + "mips_dump_tdep: tdep->mips_abi = %d (%s)\n", + tdep->mips_abi, mips_abi_strings[tdep->mips_abi]); + fprintf_filtered (file, + "mips_dump_tdep: " + "mips_mask_address_p() %d (default %d)\n", + mips_mask_address_p (tdep), + tdep->default_mask_address_p); } - fprintf_unfiltered (file, - "mips_dump_tdep: MIPS_DEFAULT_FPU_TYPE = %d (%s)\n", - MIPS_DEFAULT_FPU_TYPE, - mips_fpu_type_str (MIPS_DEFAULT_FPU_TYPE)); - fprintf_unfiltered (file, "mips_dump_tdep: MIPS_EABI = %d\n", - mips_eabi (gdbarch)); - fprintf_unfiltered (file, - "mips_dump_tdep: MIPS_FPU_TYPE = %d (%s)\n", - mips_get_fpu_type (gdbarch), - mips_fpu_type_str (mips_get_fpu_type (gdbarch))); + fprintf_filtered (file, + "mips_dump_tdep: MIPS_DEFAULT_FPU_TYPE = %d (%s)\n", + MIPS_DEFAULT_FPU_TYPE, + mips_fpu_type_str (MIPS_DEFAULT_FPU_TYPE)); + fprintf_filtered (file, "mips_dump_tdep: MIPS_EABI = %d\n", + mips_eabi (gdbarch)); + fprintf_filtered (file, + "mips_dump_tdep: MIPS_FPU_TYPE = %d (%s)\n", + mips_get_fpu_type (gdbarch), + mips_fpu_type_str (mips_get_fpu_type (gdbarch))); } void _initialize_mips_tdep (); |