mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
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.
This commit is contained in:
@ -1296,8 +1296,8 @@ fbsd_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus,
|
||||
fbsd_lwp_debug_printf ("deleting thread for LWP %u",
|
||||
pl.pl_lwpid);
|
||||
if (print_thread_events)
|
||||
printf_unfiltered (_("[%s exited]\n"),
|
||||
target_pid_to_str (wptid).c_str ());
|
||||
printf_filtered (_("[%s exited]\n"),
|
||||
target_pid_to_str (wptid).c_str ());
|
||||
low_delete_thread (thr);
|
||||
delete_thread (thr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user