diff options
author | Pedro Alves <palves@redhat.com> | 2009-01-09 17:29:52 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-01-09 17:29:52 +0000 |
commit | 58d4abe16b37770aa4d5e0c6548b4ff039509d54 (patch) | |
tree | fdba37c3f2dcee13d284804a988030d4ed41c0ae /gdb/remote-sim.c | |
parent | e3cb3832093dc26fbd140363d5696f3ea918f238 (diff) | |
download | gdb-58d4abe16b37770aa4d5e0c6548b4ff039509d54.zip gdb-58d4abe16b37770aa4d5e0c6548b4ff039509d54.tar.gz gdb-58d4abe16b37770aa4d5e0c6548b4ff039509d54.tar.bz2 |
* 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.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 6bd0508..5b9d2d3 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 |