* 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
|
@ -143,17 +143,17 @@ memory_error (status, memaddr)
|
|||
/* Actually, address between memaddr and memaddr + len
|
||||
was out of bounds. */
|
||||
error_begin ();
|
||||
printf_unfiltered ("Cannot access memory at address ");
|
||||
printf_filtered ("Cannot access memory at address ");
|
||||
print_address_numeric (memaddr, gdb_stdout);
|
||||
printf_unfiltered (".\n");
|
||||
printf_filtered (".\n");
|
||||
return_to_top_level (RETURN_ERROR);
|
||||
}
|
||||
else
|
||||
{
|
||||
error_begin ();
|
||||
printf_unfiltered ("Error accessing memory address ");
|
||||
printf_filtered ("Error accessing memory address ");
|
||||
print_address_numeric (memaddr, gdb_stdout);
|
||||
printf_unfiltered (": %s.\n",
|
||||
printf_filtered (": %s.\n",
|
||||
safe_strerror (status));
|
||||
return_to_top_level (RETURN_ERROR);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue