From a0cf46812cd57a8561ed6399b4aff14259374407 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 28 Apr 1994 21:38:15 +0000 Subject: * 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. --- gdb/defs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/defs.h') diff --git a/gdb/defs.h b/gdb/defs.h index f86b46d..4b7b0c3 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -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 (); -- cgit v1.1