* [pushed] Fix use of 'printf' in gdbtypes.c
@ 2022-01-03 18:05 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-01-03 18:05 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
An earlier patch of mine, commit 64b7cc50 ("Remove
gdb_print_host_address") inadvertently changed a function in
gdbtypes.c to use printf rather than printf_filtered. This patch
fixes the problem.
---
gdb/gdbtypes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index ab1c9d43318..8af96c79e6c 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -5312,7 +5312,7 @@ recursive_dump_type (struct type *type, int spaces)
}
printf_filtered ("\n");
}
- printf ("%s\n", host_address_to_string (type->fields ()));
+ printf_filtered ("%s\n", host_address_to_string (type->fields ()));
for (idx = 0; idx < type->num_fields (); idx++)
{
if (type->code () == TYPE_CODE_ENUM)
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-03 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 18:05 [pushed] Fix use of 'printf' in gdbtypes.c Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).