From 3053b9f218b522e7b472680b99df27f454ef01cd Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 30 Nov 1991 01:02:03 +0000 Subject: [PATCH] Change simple call to printf of error message to a call to error(). Output was not getting flushed and was not being newline terminated. --- gdb/ChangeLog | 5 +++++ gdb/symtab.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 23cdf5ed078..14e48730393 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 29 16:59:25 1991 Fred Fish (fnf at cygnus.com) + + * symtab.c (sources_info): Change simple printf of error message + to call to error(). + Fri Nov 29 16:04:21 1991 Roland H. Pesch (pesch at cygnus.com) * doc/gdb.texinfo: remove leading comments that survived M4 but diff --git a/gdb/symtab.c b/gdb/symtab.c index 3c5eea35691..0e1ead65022 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2372,8 +2372,7 @@ sources_info () if (symtab_list == 0 && partial_symtab_list == 0) { - printf (no_symtab_msg); - return; + error (no_symtab_msg); } printf_filtered ("Source files for which symbols have been read in:\n\n"); -- 2.30.2