* core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),

language.c (type_error, range_error): Use filtered output.
	* utils.c (error_begin): Update comment to tell people to use
	filtered output.
This commit is contained in:
Jim Kingdon 1994-05-04 14:20:32 +00:00
parent 997c6a1d84
commit e16b9023f0
3 changed files with 15 additions and 10 deletions

View file

@ -984,14 +984,14 @@ type_error (va_alist)
char *string;
if (type_check == type_check_warn)
fprintf_unfiltered (gdb_stderr, warning_pre_print);
fprintf_filtered (gdb_stderr, warning_pre_print);
else
error_begin ();
va_start (args);
string = va_arg (args, char *);
vfprintf_unfiltered (gdb_stderr, string, args);
fprintf_unfiltered (gdb_stderr, "\n");
vfprintf_filtered (gdb_stderr, string, args);
fprintf_filtered (gdb_stderr, "\n");
va_end (args);
if (type_check == type_check_on)
return_to_top_level (RETURN_ERROR);
@ -1005,14 +1005,14 @@ range_error (va_alist)
char *string;
if (range_check == range_check_warn)
fprintf_unfiltered (gdb_stderr, warning_pre_print);
fprintf_filtered (gdb_stderr, warning_pre_print);
else
error_begin ();
va_start (args);
string = va_arg (args, char *);
vfprintf_unfiltered (gdb_stderr, string, args);
fprintf_unfiltered (gdb_stderr, "\n");
vfprintf_filtered (gdb_stderr, string, args);
fprintf_filtered (gdb_stderr, "\n");
va_end (args);
if (range_check == range_check_on)
return_to_top_level (RETURN_ERROR);