From 830df12588cfa80be673e710bee22761752ead11 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 8 Jan 2022 16:31:44 -0700 Subject: Remove some uses of printf_unfiltered A number of spots call printf_unfiltered only because they are in code that should not be interrupted by the pager. However, I believe these cases are all handled by infrun's blanket ban on paging, and so can be converted to the default (_filtered) API. After this patch, I think all the remaining _unfiltered calls are ones that really ought to be. A few -- namely in complete_command -- could be replaced by a scoped assignment to pagination_enabled, but for the remainder, the code seems simple enough like this. --- gdb/linux-thread-db.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/linux-thread-db.c') diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 530ece0..487a2af 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -936,7 +936,7 @@ try_thread_db_load_1 (struct thread_db_info *info) return false; } - printf_unfiltered (_("[Thread debugging using libthread_db enabled]\n")); + printf_filtered (_("[Thread debugging using libthread_db enabled]\n")); if (!libthread_db_search_path.empty () || libthread_db_debug) { @@ -946,8 +946,8 @@ try_thread_db_load_1 (struct thread_db_info *info) if (library == NULL) library = LIBTHREAD_DB_SO; - printf_unfiltered (_("Using host libthread_db library \"%ps\".\n"), - styled_string (file_name_style.style (), library)); + printf_filtered (_("Using host libthread_db library \"%ps\".\n"), + styled_string (file_name_style.style (), library)); } /* The thread library was detected. Activate the thread_db target -- cgit v1.1