mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* 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:
@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user