From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25408 invoked by alias); 28 Jul 2008 15:48:18 -0000 Received: (qmail 25397 invoked by uid 22791); 28 Jul 2008 15:48:15 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jul 2008 15:47:54 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m6SFlo77005216 for ; Mon, 28 Jul 2008 11:47:52 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6SFlojm031367; Mon, 28 Jul 2008 11:47:50 -0400 Received: from opsy.redhat.com (vpn-10-11.bos.redhat.com [10.16.10.11]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6SFlnDw016072; Mon, 28 Jul 2008 11:47:50 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id DA1543784E1; Mon, 28 Jul 2008 09:47:48 -0600 (MDT) To: gdb-patches@sourceware.org Subject: RFA: remove BEFORE_MAIN_LOOP_HOOK From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Mon, 28 Jul 2008 15:48:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00517.txt.bz2 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 * 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)