aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-02-02 03:42:59 +0000
committerAndrew Cagney <cagney@redhat.com>2002-02-02 03:42:59 +0000
commit255e7dbf2e106ccba748f1d34422d9df7fcc1038 (patch)
tree8049bf598088831675b090b7bbb04419768c308e /gdb/coffread.c
parent261c4ca20698ffa0b5efa6a0908c55aae31711e8 (diff)
downloadgdb-255e7dbf2e106ccba748f1d34422d9df7fcc1038.zip
gdb-255e7dbf2e106ccba748f1d34422d9df7fcc1038.tar.gz
gdb-255e7dbf2e106ccba748f1d34422d9df7fcc1038.tar.bz2
* utils.c (error_begin): Make static.
* defs.h (error_begin): Delete declaration. * linespec.c (cplusplus_error): Replace cplusplus_hint. (decode_line_1): Use cplusplus_error instead of error_begin, cplusplus_hint and return_to_top_level. * coffread.c (coff_symfile_read): Use error instead of error_begin and return_to_top_level. * infrun.c (default_skip_permanent_breakpoint): Ditto.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index b765af9..69d06ba 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -668,13 +668,10 @@ coff_symfile_read (struct objfile *objfile, int mainline)
{
if (!info->stabstrsect)
{
- error_begin ();
- fprintf_filtered
- (gdb_stderr,
- ("The debugging information in `%s' is corrupted.\n"
- "The file has a `.stabs' section, but no `.stabstr' section.\n"),
- name);
- return_to_top_level (RETURN_ERROR);
+ error (("The debugging information in `%s' is corrupted.\n"
+ "The file has a `.stabs' section, but no `.stabstr' "
+ "section."),
+ name);
}
/* FIXME: dubious. Why can't we use something normal like