This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: remove BEFORE_MAIN_LOOP_HOOK


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]