This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFA: remove BEFORE_MAIN_LOOP_HOOK
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 28 Jul 2008 09:47:48 -0600
- Subject: RFA: remove BEFORE_MAIN_LOOP_HOOK
- Reply-to: Tom Tromey <tromey at redhat dot com>
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)