From b58f47ab4cae11166f210f54bca6e7c58b855a0f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 24 Dec 2021 22:31:53 -0700 Subject: Use filtered output in ordinary commands Many otherwise ordinary commands choose to use unfiltered output rather than filtered. I don't think there's any reason for this, so this changes many such commands to use filtered output instead. Note that complete_command is not touched due to a comment there explaining why unfiltered output is believed to be used. --- gdb/printcmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/printcmd.c') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 4693d58..509f62c 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2058,7 +2058,7 @@ map_display_numbers (const char *args, return item->number == num; }); if (iter == all_displays.end ()) - printf_unfiltered (_("No display number %d.\n"), num); + printf_filtered (_("No display number %d.\n"), num); else function (iter->get ()); } @@ -2253,7 +2253,7 @@ disable_display (int num) d->enabled_p = false; return; } - printf_unfiltered (_("No display number %d.\n"), num); + printf_filtered (_("No display number %d.\n"), num); } void @@ -2274,7 +2274,7 @@ static void info_display_command (const char *ignore, int from_tty) { if (all_displays.empty ()) - printf_unfiltered (_("There are no auto-display expressions now.\n")); + printf_filtered (_("There are no auto-display expressions now.\n")); else printf_filtered (_("Auto-display expressions now in effect:\n\ Num Enb Expression\n")); -- cgit v1.1