From 3de0d96078193276795b9bdf72a25b77b60d8337 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 29 Dec 2021 11:05:51 -0700 Subject: Use filtered output in show callbacks "show" command callbacks, like most ordinary gdb commands, should use filtered output. I found a few that did not, so this patch changes them to use the filtered form. --- gdb/arch-utils.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gdb/arch-utils.c') diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index fb92b99..63c3c6c 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -375,18 +375,18 @@ show_endian (struct ui_file *file, int from_tty, struct cmd_list_element *c, { if (target_byte_order_user == BFD_ENDIAN_UNKNOWN) if (gdbarch_byte_order (get_current_arch ()) == BFD_ENDIAN_BIG) - fprintf_unfiltered (file, _("The target endianness is set automatically " - "(currently big endian).\n")); + fprintf_filtered (file, _("The target endianness is set automatically " + "(currently big endian).\n")); else - fprintf_unfiltered (file, _("The target endianness is set automatically " - "(currently little endian).\n")); + fprintf_filtered (file, _("The target endianness is set automatically " + "(currently little endian).\n")); else if (target_byte_order_user == BFD_ENDIAN_BIG) - fprintf_unfiltered (file, - _("The target is set to big endian.\n")); + fprintf_filtered (file, + _("The target is set to big endian.\n")); else - fprintf_unfiltered (file, - _("The target is set to little endian.\n")); + fprintf_filtered (file, + _("The target is set to little endian.\n")); } static void -- cgit v1.1