* RFA: remove BEFORE_MAIN_LOOP_HOOK
@ 2008-07-28 15:48 Tom Tromey
2008-07-28 16:15 ` Stan Shebs
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2008-07-28 15:48 UTC (permalink / raw)
To: gdb-patches
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: remove BEFORE_MAIN_LOOP_HOOK
2008-07-28 15:48 RFA: remove BEFORE_MAIN_LOOP_HOOK Tom Tromey
@ 2008-07-28 16:15 ` Stan Shebs
2008-07-28 16:29 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Stan Shebs @ 2008-07-28 16:15 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
Tom Tromey wrote:
> 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?
>
Heh, this was one of the main.c cleanups I didn't get around to posting
last week. :-) So yes!
Stan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: remove BEFORE_MAIN_LOOP_HOOK
2008-07-28 16:15 ` Stan Shebs
@ 2008-07-28 16:29 ` Tom Tromey
0 siblings, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2008-07-28 16:29 UTC (permalink / raw)
To: Stan Shebs; +Cc: gdb-patches
>>>>> "Stan" == Stan Shebs <stanshebs@earthlink.net> writes:
>> 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.
Stan> Heh, this was one of the main.c cleanups I didn't get around to
Stan> posting last week. :-) So yes!
You know, I completely forgot about that until you mentioned it.
Weird.
I checked it in, thanks.
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-28 16:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-28 15:48 RFA: remove BEFORE_MAIN_LOOP_HOOK Tom Tromey
2008-07-28 16:15 ` Stan Shebs
2008-07-28 16:29 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox