From: John Gilmore Date: Wed, 17 Mar 1993 20:21:55 +0000 (+0000) Subject: (show_user): Avoid fprintf_filtered botch (AGAIN!). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3021c40d20c93f591f912f1b3ba55809735d49fb;p=binutils-gdb.git (show_user): Avoid fprintf_filtered botch (AGAIN!). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a206ca00ea4..d161f08e635 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -18,6 +18,10 @@ Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com) * xcoffread.c (xcoff_symfile_read): Only read stringtab and debugsec if there are a non-zero number of symbols. +Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com) + + * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!). + Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com) * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors. diff --git a/gdb/command.c b/gdb/command.c index 1fce334b4f5..abcc1a0d69f 100644 --- a/gdb/command.c +++ b/gdb/command.c @@ -1205,10 +1205,13 @@ show_user_1 (c, stream) cmdlines = c->user_commands; if (!cmdlines) return; - fprintf_filtered (stream, "User command %s:\n", c->name); + fputs_filtered ("User command ", stream); + fputs_filtered (c->name, stream); + fputs_filtered (":\n", stream); while (cmdlines) { - fprintf_filtered (stream, "%s\n", cmdlines->line); + fputs_filtered (cmdlines->line, stream); + fputs_filtered ("\n", stream); cmdlines = cmdlines->next; } fputs_filtered ("\n", stream);