summaryrefslogtreecommitdiff
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
commit868bc9869eb847603820705a7f1309ab1178effd (patch)
tree901d0d78fac4be93229f026c705072eaf0d00a24 /gdb/coffread.c
parentf33378e639d6d95980faf84cd71f451a8c3b06f2 (diff)
downloadgdb-868bc9869eb847603820705a7f1309ab1178effd.tar.gz
* 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 b765af9c781..69d06bae590 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