aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-11-30 01:02:03 +0000
committerFred Fish <fnf@specifix.com>1991-11-30 01:02:03 +0000
commit3053b9f218b522e7b472680b99df27f454ef01cd (patch)
tree4a0425a6a3fbfd547d067a9476857cab7c78b155 /gdb
parent4b195f9a3077d18a77a9d3d70e59b98fb54ed7ac (diff)
downloadgdb-3053b9f218b522e7b472680b99df27f454ef01cd.zip
gdb-3053b9f218b522e7b472680b99df27f454ef01cd.tar.gz
gdb-3053b9f218b522e7b472680b99df27f454ef01cd.tar.bz2
Change simple call to printf of error message to a call to error(). Output
was not getting flushed and was not being newline terminated.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symtab.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 23cdf5e..14e4873 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 3c5eea3..0e1ead6 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");