(show_user): Avoid fprintf_filtered botch (AGAIN!).

This commit is contained in:
John Gilmore 1993-03-17 20:21:55 +00:00
parent 04fb224c92
commit 3021c40d20
2 changed files with 9 additions and 2 deletions

View file

@ -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 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
debugsec if there are a non-zero number of symbols. 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) Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
* xcoffexec.c (add_vmap): Wrap symbol read in catch_errors. * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.

View file

@ -1205,10 +1205,13 @@ show_user_1 (c, stream)
cmdlines = c->user_commands; cmdlines = c->user_commands;
if (!cmdlines) if (!cmdlines)
return; 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) while (cmdlines)
{ {
fprintf_filtered (stream, "%s\n", cmdlines->line); fputs_filtered (cmdlines->line, stream);
fputs_filtered ("\n", stream);
cmdlines = cmdlines->next; cmdlines = cmdlines->next;
} }
fputs_filtered ("\n", stream); fputs_filtered ("\n", stream);