From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3312 invoked by alias); 27 Jun 2002 02:26:39 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3305 invoked from network); 27 Jun 2002 02:26:38 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 27 Jun 2002 02:26:38 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 413CF3DD3; Wed, 26 Jun 2002 22:26:34 -0400 (EDT) Message-ID: <3D1A77DA.1060902@ges.redhat.com> Date: Wed, 26 Jun 2002 19:26:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020613 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christopher Faylor Cc: Gdb List Subject: Re: _initialize_inftarg References: <87d6ufdskk.fsf@fleche.redhat.com> <3D1932BB.9000102@cygnus.com> <20020626032701.GA8229@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00278.txt.bz2 > On Tue, Jun 25, 2002 at 11:19:23PM -0400, Andrew Cagney wrote: > >>>There are 3 functions in gdb named _initialize_inftarg: >>> >>> grep -n '^_initialize_inftarg' *.c /dev/null >>> inftarg.c:839:_initialize_inftarg (void) >>> win32-nat.c:1818:_initialize_inftarg (void) >>> wince.c:1968:_initialize_inftarg (void) >>> >>>I assume the win* ones are simply cut-and-paste error? > >> >>Er, yes - they should correspond to their file names. I guess only one >>was linked in at any time. > > > That routine is pretty ancient. It was apparently introduced by Steve > Chamberlain in 1995. > > Does it really hurt for it to be called by that name, though? > _inftarg.c will never be linked for a windows gdb. I think it was meant > to somewhat emulate the functionality of the similar function in > inftarg.c. True, for the sake of consistency though, I think a file called FILE.c should have _initialize_file() as the initialise function. Andrew