* 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:
parent
997c6a1d84
commit
e16b9023f0
3 changed files with 15 additions and 10 deletions
|
@ -1,5 +1,10 @@
|
||||||
Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
|
* Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
|
||||||
(HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
|
(HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
|
||||||
bfd.h.
|
bfd.h.
|
||||||
|
|
|
@ -143,17 +143,17 @@ memory_error (status, memaddr)
|
||||||
/* Actually, address between memaddr and memaddr + len
|
/* Actually, address between memaddr and memaddr + len
|
||||||
was out of bounds. */
|
was out of bounds. */
|
||||||
error_begin ();
|
error_begin ();
|
||||||
printf_unfiltered ("Cannot access memory at address ");
|
printf_filtered ("Cannot access memory at address ");
|
||||||
print_address_numeric (memaddr, gdb_stdout);
|
print_address_numeric (memaddr, gdb_stdout);
|
||||||
printf_unfiltered (".\n");
|
printf_filtered (".\n");
|
||||||
return_to_top_level (RETURN_ERROR);
|
return_to_top_level (RETURN_ERROR);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
error_begin ();
|
error_begin ();
|
||||||
printf_unfiltered ("Error accessing memory address ");
|
printf_filtered ("Error accessing memory address ");
|
||||||
print_address_numeric (memaddr, gdb_stdout);
|
print_address_numeric (memaddr, gdb_stdout);
|
||||||
printf_unfiltered (": %s.\n",
|
printf_filtered (": %s.\n",
|
||||||
safe_strerror (status));
|
safe_strerror (status));
|
||||||
return_to_top_level (RETURN_ERROR);
|
return_to_top_level (RETURN_ERROR);
|
||||||
}
|
}
|
||||||
|
|
|
@ -984,14 +984,14 @@ type_error (va_alist)
|
||||||
char *string;
|
char *string;
|
||||||
|
|
||||||
if (type_check == type_check_warn)
|
if (type_check == type_check_warn)
|
||||||
fprintf_unfiltered (gdb_stderr, warning_pre_print);
|
fprintf_filtered (gdb_stderr, warning_pre_print);
|
||||||
else
|
else
|
||||||
error_begin ();
|
error_begin ();
|
||||||
|
|
||||||
va_start (args);
|
va_start (args);
|
||||||
string = va_arg (args, char *);
|
string = va_arg (args, char *);
|
||||||
vfprintf_unfiltered (gdb_stderr, string, args);
|
vfprintf_filtered (gdb_stderr, string, args);
|
||||||
fprintf_unfiltered (gdb_stderr, "\n");
|
fprintf_filtered (gdb_stderr, "\n");
|
||||||
va_end (args);
|
va_end (args);
|
||||||
if (type_check == type_check_on)
|
if (type_check == type_check_on)
|
||||||
return_to_top_level (RETURN_ERROR);
|
return_to_top_level (RETURN_ERROR);
|
||||||
|
@ -1005,14 +1005,14 @@ range_error (va_alist)
|
||||||
char *string;
|
char *string;
|
||||||
|
|
||||||
if (range_check == range_check_warn)
|
if (range_check == range_check_warn)
|
||||||
fprintf_unfiltered (gdb_stderr, warning_pre_print);
|
fprintf_filtered (gdb_stderr, warning_pre_print);
|
||||||
else
|
else
|
||||||
error_begin ();
|
error_begin ();
|
||||||
|
|
||||||
va_start (args);
|
va_start (args);
|
||||||
string = va_arg (args, char *);
|
string = va_arg (args, char *);
|
||||||
vfprintf_unfiltered (gdb_stderr, string, args);
|
vfprintf_filtered (gdb_stderr, string, args);
|
||||||
fprintf_unfiltered (gdb_stderr, "\n");
|
fprintf_filtered (gdb_stderr, "\n");
|
||||||
va_end (args);
|
va_end (args);
|
||||||
if (range_check == range_check_on)
|
if (range_check == range_check_on)
|
||||||
return_to_top_level (RETURN_ERROR);
|
return_to_top_level (RETURN_ERROR);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue