[PATCH] gdb: remove pre_init_ui_hook from top.c

Simon Marchi simon.marchi@polymtl.ca
Tue Jan 12 06:07:13 GMT 2021


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
---
 gdb/top.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/gdb/top.c b/gdb/top.c
index fca3c23951d3..2c13864e120f 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__
-- 
2.29.2



More information about the Gdb-patches mailing list