summaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-01-09 17:29:51 +0000
committerPedro Alves <pedro@codesourcery.com>2009-01-09 17:29:51 +0000
commit58f8992d79a305a8427d5f592d0ccad451810d87 (patch)
tree569e18311447695f808671dee9992f56dbd477f2 /gdb/remote-sim.c
parent5ff7044261fce3ced393828fe0ed3cf66cf99651 (diff)
downloadgdb-58f8992d79a305a8427d5f592d0ccad451810d87.tar.gz
* 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.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 6bd05089907..5b9d2d31558 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -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