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/infrun.c
10
gdb/infrun.c
@@ -1130,9 +1130,9 @@ follow_exec (ptid_t ptid, const char *exec_file_target)
|
||||
|
||||
/* What is this a.out's name? */
|
||||
process_ptid = ptid_t (pid);
|
||||
printf_unfiltered (_("%s is executing new program: %s\n"),
|
||||
target_pid_to_str (process_ptid).c_str (),
|
||||
exec_file_target);
|
||||
printf_filtered (_("%s is executing new program: %s\n"),
|
||||
target_pid_to_str (process_ptid).c_str (),
|
||||
exec_file_target);
|
||||
|
||||
/* We've followed the inferior through an exec. Therefore, the
|
||||
inferior has essentially been killed & reborn. */
|
||||
@@ -4159,7 +4159,7 @@ fetch_inferior_event ()
|
||||
&& exec_done_display_p
|
||||
&& (inferior_ptid == null_ptid
|
||||
|| inferior_thread ()->state != THREAD_RUNNING))
|
||||
printf_unfiltered (_("completed.\n"));
|
||||
printf_filtered (_("completed.\n"));
|
||||
}
|
||||
|
||||
/* See infrun.h. */
|
||||
@@ -8851,7 +8851,7 @@ Are you sure you want to change it? "),
|
||||
sigs[signum] = 1;
|
||||
}
|
||||
else
|
||||
printf_unfiltered (_("Not confirmed, unchanged.\n"));
|
||||
printf_filtered (_("Not confirmed, unchanged.\n"));
|
||||
}
|
||||
break;
|
||||
case GDB_SIGNAL_0:
|
||||
|
||||
Reference in New Issue
Block a user