diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-04-28 21:38:15 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-04-28 21:38:15 +0000 |
commit | a0cf46812cd57a8561ed6399b4aff14259374407 (patch) | |
tree | 1be91dbe776fc9c2716ef37479e92ccaf9e9edd2 /gdb/language.c | |
parent | 21ad7c45a4061b7239c8729bf2a9e308a15301fc (diff) | |
download | gdb-a0cf46812cd57a8561ed6399b4aff14259374407.zip gdb-a0cf46812cd57a8561ed6399b4aff14259374407.tar.gz gdb-a0cf46812cd57a8561ed6399b4aff14259374407.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/language.c b/gdb/language.c index 9dcdbba..af0243b 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -983,18 +983,18 @@ type_error (va_alist) va_list args; char *string; - if (type_check==type_check_warn) - fprintf_unfiltered(gdb_stderr,warning_pre_print); + if (type_check == type_check_warn) + fprintf_unfiltered (gdb_stderr, warning_pre_print); else - target_terminal_ours(); + error_begin (); va_start (args); string = va_arg (args, char *); vfprintf_unfiltered (gdb_stderr, string, args); fprintf_unfiltered (gdb_stderr, "\n"); va_end (args); - if (type_check==type_check_on) - return_to_top_level (RETURN_ERROR); + if (type_check == type_check_on) + return_to_top_level (RETURN_ERROR); } void @@ -1004,18 +1004,18 @@ range_error (va_alist) va_list args; char *string; - if (range_check==range_check_warn) - fprintf_unfiltered(gdb_stderr,warning_pre_print); + if (range_check == range_check_warn) + fprintf_unfiltered (gdb_stderr, warning_pre_print); else - target_terminal_ours(); + error_begin (); va_start (args); string = va_arg (args, char *); vfprintf_unfiltered (gdb_stderr, string, args); fprintf_unfiltered (gdb_stderr, "\n"); va_end (args); - if (range_check==range_check_on) - return_to_top_level (RETURN_ERROR); + if (range_check == range_check_on) + return_to_top_level (RETURN_ERROR); } |