diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-30 12:16:58 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-05 11:36:33 -0700 |
commit | 7befbbd4c3d50c17fb22d872fd933d8c917aa5ee (patch) | |
tree | d557613e147874cfadab23223b412fd571d6ddbc /gdb/reggroups.c | |
parent | 34fda50beed954b3fa392297c34c9417a81d7a38 (diff) | |
download | fsf-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/reggroups.c')
-rw-r--r-- | gdb/reggroups.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/reggroups.c b/gdb/reggroups.c index 38861c9..2b612fb 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -251,7 +251,7 @@ reggroups_dump (struct gdbarch *gdbarch, struct ui_file *file) name = "Group"; else name = reggroup_name (group); - fprintf_unfiltered (file, " %-10s", name); + fprintf_filtered (file, " %-10s", name); } /* Group type. */ @@ -274,13 +274,13 @@ reggroups_dump (struct gdbarch *gdbarch, struct ui_file *file) internal_error (__FILE__, __LINE__, _("bad switch")); } } - fprintf_unfiltered (file, " %-10s", type); + fprintf_filtered (file, " %-10s", type); } /* Note: If you change this, be sure to also update the documentation. */ - fprintf_unfiltered (file, "\n"); + fprintf_filtered (file, "\n"); group = reggroup_next (gdbarch, group); } |