summaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-26 18:14:39 -0700
committerTom Tromey <tom@tromey.com>2022-01-05 11:36:22 -0700
commita03743453101edf0badda39f25d30736d184973b (patch)
tree2680710926c816e05f41660cbabfbe6b591a2cc5 /gdb/target.c
parentec2770563a66ee861442f212b48523d71a624c0e (diff)
downloadbinutils-gdb-a03743453101edf0badda39f25d30736d184973b.tar.gz
Use filtered output in files_info implementations
This changes the implementations of the target files_info method to use filtered output. This makes sense because the sole caller of this method is an ordinary command (info_program_command). This patch changes this command to use filtered output as well.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/target.c b/gdb/target.c
index e10b295c797..b3b1bbd06b2 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2444,8 +2444,8 @@ info_target_command (const char *args, int from_tty)
if (current_program_space->symfile_object_file != NULL)
{
objfile *objf = current_program_space->symfile_object_file;
- printf_unfiltered (_("Symbols from \"%s\".\n"),
- objfile_name (objf));
+ printf_filtered (_("Symbols from \"%s\".\n"),
+ objfile_name (objf));
}
for (target_ops *t = current_inferior ()->top_target ();
@@ -2458,9 +2458,9 @@ info_target_command (const char *args, int from_tty)
if ((int) (t->stratum ()) <= (int) dummy_stratum)
continue;
if (has_all_mem)
- printf_unfiltered (_("\tWhile running this, "
- "GDB does not access memory from...\n"));
- printf_unfiltered ("%s:\n", t->longname ());
+ printf_filtered (_("\tWhile running this, "
+ "GDB does not access memory from...\n"));
+ printf_filtered ("%s:\n", t->longname ());
t->files_info ();
has_all_mem = t->has_all_memory ();
}