mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +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:
@ -164,11 +164,11 @@ add_inferior (int pid)
|
||||
if (print_inferior_events)
|
||||
{
|
||||
if (pid != 0)
|
||||
printf_unfiltered (_("[New inferior %d (%s)]\n"),
|
||||
inf->num,
|
||||
target_pid_to_str (ptid_t (pid)).c_str ());
|
||||
printf_filtered (_("[New inferior %d (%s)]\n"),
|
||||
inf->num,
|
||||
target_pid_to_str (ptid_t (pid)).c_str ());
|
||||
else
|
||||
printf_unfiltered (_("[New inferior %d]\n"), inf->num);
|
||||
printf_filtered (_("[New inferior %d]\n"), inf->num);
|
||||
}
|
||||
|
||||
return inf;
|
||||
@ -264,9 +264,9 @@ detach_inferior (inferior *inf)
|
||||
exit_inferior_1 (inf, 0);
|
||||
|
||||
if (print_inferior_events)
|
||||
printf_unfiltered (_("[Inferior %d (%s) detached]\n"),
|
||||
inf->num,
|
||||
target_pid_to_str (ptid_t (pid)).c_str ());
|
||||
printf_filtered (_("[Inferior %d (%s) detached]\n"),
|
||||
inf->num,
|
||||
target_pid_to_str (ptid_t (pid)).c_str ());
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user