forked from Imagelibrary/binutils-gdb
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:
10
gdb/infcmd.c
10
gdb/infcmd.c
@@ -1179,11 +1179,11 @@ signal_command (const char *signum_exp, int from_tty)
|
||||
&& signal_pass_state (tp->stop_signal ()))
|
||||
{
|
||||
if (!must_confirm)
|
||||
printf_unfiltered (_("Note:\n"));
|
||||
printf_unfiltered (_(" Thread %s previously stopped with signal %s, %s.\n"),
|
||||
print_thread_id (tp),
|
||||
gdb_signal_to_name (tp->stop_signal ()),
|
||||
gdb_signal_to_string (tp->stop_signal ()));
|
||||
printf_filtered (_("Note:\n"));
|
||||
printf_filtered (_(" Thread %s previously stopped with signal %s, %s.\n"),
|
||||
print_thread_id (tp),
|
||||
gdb_signal_to_name (tp->stop_signal ()),
|
||||
gdb_signal_to_string (tp->stop_signal ()));
|
||||
must_confirm = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user