Use filtered output in some dumping commands
There are several commands that may optionally send their output to a file -- they take an optional filename argument and open a file. This patch changes these commands to use filtered output. The rationale here is that, when printing to gdb_stdout, filtering is appropriate -- it is, and should be, the default for all commands. And, when writing to a file, paging will not happen anyway (it only happens when the stream==gdb_stdout), so using the _filtered form will not change anything.
This commit is contained in:
parent
34fda50bee
commit
7befbbd4c3
5 changed files with 61 additions and 61 deletions
|
@ -405,10 +405,10 @@ fprint_dummy_frames (struct ui_file *file)
|
|||
struct dummy_frame *s;
|
||||
|
||||
for (s = dummy_frame_stack; s != NULL; s = s->next)
|
||||
fprintf_unfiltered (file, "%s: id=%s, ptid=%s\n",
|
||||
host_address_to_string (s),
|
||||
s->id.id.to_string ().c_str (),
|
||||
target_pid_to_str (s->id.thread->ptid).c_str ());
|
||||
fprintf_filtered (file, "%s: id=%s, ptid=%s\n",
|
||||
host_address_to_string (s),
|
||||
s->id.id.to_string ().c_str (),
|
||||
target_pid_to_str (s->id.thread->ptid).c_str ());
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue