aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-03-17 20:21:55 +0000
committerJohn Gilmore <gnu@cygnus>1993-03-17 20:21:55 +0000
commit3021c40d20c93f591f912f1b3ba55809735d49fb (patch)
tree8d8713487927b95945cc043302f6feec77934d53 /gdb/command.c
parent04fb224c921be9e1ab81c1a94e2606d8be348a08 (diff)
downloadgdb-3021c40d20c93f591f912f1b3ba55809735d49fb.zip
gdb-3021c40d20c93f591f912f1b3ba55809735d49fb.tar.gz
gdb-3021c40d20c93f591f912f1b3ba55809735d49fb.tar.bz2
(show_user): Avoid fprintf_filtered botch (AGAIN!).
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/command.c b/gdb/command.c
index 1fce334..abcc1a0 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);