From 255e7dbf2e106ccba748f1d34422d9df7fcc1038 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 2 Feb 2002 03:42:59 +0000 Subject: * 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. --- gdb/coffread.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gdb/coffread.c') 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 -- cgit v1.1