RFA: remove BEFORE_MAIN_LOOP_HOOK

Tom Tromey tromey@redhat.com
Mon Jul 28 15:48:00 GMT 2008


I happened to notice that BEFORE_MAIN_LOOP_HOOK is completely unused.
It is mentioned in main.c and the ChangeLogs, but not in any other
file in the gdb tree.

So, this patch removes it.

Built and regression tested on the gcc compile farm (x86-64).

Ok?

Tom

2008-07-27  Tom Tromey  <tromey@redhat.com>

	* main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.

diff --git a/gdb/main.c b/gdb/main.c
index 91d751a..c4b7951 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -818,13 +818,6 @@ Can't attach to process and specify a core file at the same time."));
       quit_force (NULL, 0);
     }
 
-  /* Do any host- or target-specific hacks.  This is used for i960 targets
-     to force the user to set a nindy target and spec its parameters.  */
-
-#ifdef BEFORE_MAIN_LOOP_HOOK
-  BEFORE_MAIN_LOOP_HOOK;
-#endif
-
   /* Show time and/or space usage.  */
 
   if (display_time)



More information about the Gdb-patches mailing list