mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
* defs.h (deprecated_error_hook): Delete declaration.
* interps.c (clear_interpreter_hooks): Adjust. * remote-sim.c (gdb_os_error): Don't try to call deprecated_error_hook. No need to call exit anymore. * top.c (deprecated_error_hook): Delete.
This commit is contained in:
@@ -262,18 +262,12 @@ gdb_os_evprintf_filtered (host_callback * p, const char *format, va_list ap)
|
||||
/* GDB version of error callback. */
|
||||
|
||||
static void
|
||||
gdb_os_error (host_callback * p, const char *format,...)
|
||||
gdb_os_error (host_callback * p, const char *format, ...)
|
||||
{
|
||||
if (deprecated_error_hook)
|
||||
(*deprecated_error_hook) ();
|
||||
else
|
||||
{
|
||||
va_list args;
|
||||
va_start (args, format);
|
||||
verror (format, args);
|
||||
va_end (args);
|
||||
}
|
||||
exit (1);
|
||||
va_list args;
|
||||
va_start (args, format);
|
||||
verror (format, args);
|
||||
va_end (args);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user