aboutsummaryrefslogtreecommitdiff
path: root/gdb/dummy-frame.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-30 12:16:58 -0700
committerTom Tromey <tom@tromey.com>2022-01-05 11:36:33 -0700
commit7befbbd4c3d50c17fb22d872fd933d8c917aa5ee (patch)
treed557613e147874cfadab23223b412fd571d6ddbc /gdb/dummy-frame.c
parent34fda50beed954b3fa392297c34c9417a81d7a38 (diff)
downloadfsf-binutils-gdb-7befbbd4c3d50c17fb22d872fd933d8c917aa5ee.zip
fsf-binutils-gdb-7befbbd4c3d50c17fb22d872fd933d8c917aa5ee.tar.gz
fsf-binutils-gdb-7befbbd4c3d50c17fb22d872fd933d8c917aa5ee.tar.bz2
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.
Diffstat (limited to 'gdb/dummy-frame.c')
-rw-r--r--gdb/dummy-frame.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c
index 70c2777..41c0bde 100644
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -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