* utils.c, defs.h (error_begin): New function.

(quit): Print annotation before printing the error message.
	* main.c (return_to_top_level): Print annotation before doing the
	longjmp.
	* symtab.c (decode_line_1): Call error not warning and then
	return_to_top_level.  Call error_begin and printf_unfiltered
	rather calling warning (before calls to return_to_top_level).
	* core.c (memory_error): Use error_begin, printf_unfiltered,
	print_address_numeric and return_to_top_level instead of error.
	Cleans up a FIXME-32x64.
	* language.c (type_error, range_error): Call error_begin
	not just target_terminal_ours.
This commit is contained in:
Jim Kingdon
1994-04-28 21:38:15 +00:00
parent 21ad7c45a4
commit a0cf46812c
6 changed files with 82 additions and 39 deletions

View File

@ -337,7 +337,7 @@ extern char *
gdb_readline PARAMS ((char *));
extern char *
command_line_input PARAMS ((char *, int));
command_line_input PARAMS ((char *, int, char *));
extern void
print_prompt PARAMS ((void));
@ -623,6 +623,8 @@ extern char *warning_pre_print;
extern NORETURN void /* Does not return to the caller. */
error ();
extern void error_begin PARAMS ((void));
extern NORETURN void /* Does not return to the caller. */
fatal ();