summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-01-09 17:29:52 +0000
committerPedro Alves <palves@redhat.com>2009-01-09 17:29:52 +0000
commit58d4abe16b37770aa4d5e0c6548b4ff039509d54 (patch)
treefdba37c3f2dcee13d284804a988030d4ed41c0ae
parente3cb3832093dc26fbd140363d5696f3ea918f238 (diff)
downloadppe42-binutils-58d4abe16b37770aa4d5e0c6548b4ff039509d54.tar.gz
ppe42-binutils-58d4abe16b37770aa4d5e0c6548b4ff039509d54.zip
* 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.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/defs.h2
-rw-r--r--gdb/interps.c1
-rw-r--r--gdb/remote-sim.c16
-rw-r--r--gdb/top.c5
5 files changed, 13 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 949a9fd026..e2eeb67823 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2009-01-09 Pedro Alves <pedro@codesourcery.com>
+
+ * 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.
+
2009-01-09 Joel Brobecker <brobecker@adacore.com>
* arch-utils.c (gdbarch_update_p): Use host_address_to_string
diff --git a/gdb/defs.h b/gdb/defs.h
index 4465676b0d..209b11d38d 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1109,8 +1109,6 @@ extern void (*deprecated_call_command_hook) (struct cmd_list_element * c,
extern void (*deprecated_set_hook) (struct cmd_list_element * c);
-extern void (*deprecated_error_hook) (void);
-
extern void (*deprecated_error_begin_hook) (void);
extern int (*deprecated_ui_load_progress_hook) (const char *section,
diff --git a/gdb/interps.c b/gdb/interps.c
index e0fea6df09..6814a72c37 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -346,7 +346,6 @@ clear_interpreter_hooks (void)
deprecated_context_hook = 0;
deprecated_target_wait_hook = 0;
deprecated_call_command_hook = 0;
- deprecated_error_hook = 0;
deprecated_error_begin_hook = 0;
deprecated_command_loop_hook = 0;
}
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 6bd0508990..5b9d2d3155 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
diff --git a/gdb/top.c b/gdb/top.c
index a962aad10d..d5ef7067ab 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -283,11 +283,6 @@ void (*deprecated_set_hook) (struct cmd_list_element * c);
void (*deprecated_context_hook) (int id);
-/* Takes control from error (). Typically used to prevent longjmps out of the
- middle of the GUI. Usually used in conjunction with a catch routine. */
-
-void (*deprecated_error_hook) (void);
-
/* Handler for SIGHUP. */
#ifdef SIGHUP
OpenPOWER on IntegriCloud