aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-05-06 10:40:52 -0700
committerJoel Brobecker <brobecker@adacore.com>2015-05-06 10:48:59 -0700
commitf218b647aa21168473b973e3459258ba21ba8fbc (patch)
tree7f7d73cf8a4bb549f8a813ea4ed83d8d546d135f /gdb/top.c
parentb30a0bc387d63a28362bb08c351da32b50228530 (diff)
downloadfsf-binutils-gdb-f218b647aa21168473b973e3459258ba21ba8fbc.zip
fsf-binutils-gdb-f218b647aa21168473b973e3459258ba21ba8fbc.tar.gz
fsf-binutils-gdb-f218b647aa21168473b973e3459258ba21ba8fbc.tar.bz2
Get rid of deprecated_init_ui_hook
This hook is no longer used, and can therefore be eliminated. gdb/ChangeLog: * defs.h (deprecated_init_ui_hook): Delete. Remove associated comment. * top.c (deprecated_init_ui_hook): Delete. (gdb_init): Remove handling of deprecated_init_ui_hook. * interps.c (clear_interpreter_hooks): Remove handling of deprecated_init_ui_hook. * main.c (captured_main): Update comment.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/top.c b/gdb/top.c
index ddf5415..deb4108 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -172,14 +172,6 @@ char *lim_at_start;
/* Hooks for alternate command interfaces. */
-/* Called after most modules have been initialized, but before taking
- users command file.
-
- If the UI fails to initialize and it wants GDB to continue using
- the default UI, then it should clear this hook before returning. */
-
-void (*deprecated_init_ui_hook) (char *argv0);
-
/* This hook is called from within gdb's many mini-event loops which
could steal control from a real user interface's event loop. It
returns non-zero if the user is requesting a detach, zero
@@ -1970,12 +1962,6 @@ gdb_init (char *argv0)
set_language (language_c);
expected_language = current_language; /* Don't warn about the change. */
- /* Allow another UI to initialize. If the UI fails to initialize,
- and it wants GDB to revert to the CLI, it should clear
- deprecated_init_ui_hook. */
- if (deprecated_init_ui_hook)
- deprecated_init_ui_hook (argv0);
-
/* Python initialization, for example, can require various commands to be
installed. For example "info pretty-printer" needs the "info"
prefix to be installed. Keep things simple and just do final