aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-28 14:10:11 -0700
committerTom Tromey <tom@tromey.com>2021-12-29 11:08:04 -0700
commit7514a661283b9725ceeb4385be67b6b5d7702b2c (patch)
treeec1a988096fef8b15609413267729f3a0b7c7194 /gdb/mips-tdep.c
parentde4686ffaff8bade61657078990f392b3aa14ff4 (diff)
downloadfsf-binutils-gdb-7514a661283b9725ceeb4385be67b6b5d7702b2c.zip
fsf-binutils-gdb-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.gz
fsf-binutils-gdb-7514a661283b9725ceeb4385be67b6b5d7702b2c.tar.bz2
Consistently Use ui_file parameter to show callbacks
I happened to notice that one "show" callback was printing to gdb_stdout rather than to the passed-in ui_file parameter. I went through all such callbacks and fixed them to consistently use the ui_file. Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 603c5d2..d30487a 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1190,14 +1190,15 @@ show_mask_address (struct ui_file *file, int from_tty,
switch (mask_address_var)
{
case AUTO_BOOLEAN_TRUE:
- printf_filtered ("The 32 bit mips address mask is enabled\n");
+ fprintf_filtered (file, "The 32 bit mips address mask is enabled\n");
break;
case AUTO_BOOLEAN_FALSE:
- printf_filtered ("The 32 bit mips address mask is disabled\n");
+ fprintf_filtered (file, "The 32 bit mips address mask is disabled\n");
break;
case AUTO_BOOLEAN_AUTO:
- printf_filtered
- ("The 32 bit address mask is set automatically. Currently %s\n",
+ fprintf_filtered
+ (file,
+ "The 32 bit address mask is set automatically. Currently %s\n",
mips_mask_address_p (tdep) ? "enabled" : "disabled");
break;
default: