aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-01-12 10:42:43 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-12 10:42:43 -0500
commitb2f2ae0d6ff07e935f6ab23132f1fed02640d204 (patch)
tree14662f7d291b7e1f6b4ed58890766ec387ad8409 /gdb/top.c
parent5291fe3cd14f2861fad43303a10550e71dc14182 (diff)
downloadgdb-b2f2ae0d6ff07e935f6ab23132f1fed02640d204.zip
gdb-b2f2ae0d6ff07e935f6ab23132f1fed02640d204.tar.gz
gdb-b2f2ae0d6ff07e935f6ab23132f1fed02640d204.tar.bz2
gdb: remove pre_init_ui_hook from top.c
This hook appears to be unused. I guess it was used from insight or something like that at some point. But I grepped in today's source of insight [1] and there was no match. So I think it's safe to remove. gdb/ChangeLog: * top.c (pre_init_ui_hook): Remove. [1] https://sourceware.org/git/?p=insight.git Change-Id: Ia14499a4b6b9d79bb9a526d635fe44a654ef2a27
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/top.c b/gdb/top.c
index fca3c23..2c13864 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -447,8 +447,6 @@ read_command_file (FILE *stream)
command_handler (command);
}
}
-
-void (*pre_init_ui_hook) (void);
#ifdef __MSDOS__
static void
@@ -2325,9 +2323,6 @@ gdb_init (char *argv0)
saved_command_line = xstrdup ("");
previous_saved_command_line = xstrdup ("");
- if (pre_init_ui_hook)
- pre_init_ui_hook ();
-
/* Run the init function of each source file. */
#ifdef __MSDOS__