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/procfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/procfs.c') diff --git a/gdb/procfs.c b/gdb/procfs.c index 840201d..4751645 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -2122,8 +2122,8 @@ wait_again: if (what == SYS_lwp_exit) { if (print_thread_events) - printf_unfiltered (_("[%s exited]\n"), - target_pid_to_str (retval).c_str ()); + printf_filtered (_("[%s exited]\n"), + target_pid_to_str (retval).c_str ()); delete_thread (find_thread_ptid (this, retval)); target_continue_no_signal (ptid); goto wait_again; @@ -2229,8 +2229,8 @@ wait_again: else if (what == SYS_lwp_exit) { if (print_thread_events) - printf_unfiltered (_("[%s exited]\n"), - target_pid_to_str (retval).c_str ()); + printf_filtered (_("[%s exited]\n"), + target_pid_to_str (retval).c_str ()); delete_thread (find_thread_ptid (this, retval)); status->set_spurious (); return retval; -- cgit v1.1