From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17777 invoked by alias); 10 Jul 2002 14:03:59 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17770 invoked from network); 10 Jul 2002 14:03:57 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 10 Jul 2002 14:03:57 -0000 Received: from dsl254-114-096.nyc1.dsl.speakeasy.net ([216.254.114.96] helo=nevyn.them.org) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17SI4R-0003fH-00; Wed, 10 Jul 2002 09:03:55 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17SI4Q-0006XI-00; Wed, 10 Jul 2002 10:03:54 -0400 Date: Wed, 10 Jul 2002 07:19:00 -0000 From: Daniel Jacobowitz To: Petr Sorfa Cc: "gdb-patches@sources.redhat.com" Subject: Re: [PATCH] DW_AT_calling_convention support Message-ID: <20020710140354.GA25081@nevyn.them.org> Mail-Followup-To: Petr Sorfa , "gdb-patches@sources.redhat.com" References: <3D2B5385.997D474D@caldera.com> <20020709211520.GA21948@nevyn.them.org> <3D2B576E.85B28074@caldera.com> <20020709215812.GA966@nevyn.them.org> <3D2C3C5F.A74215A4@caldera.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D2C3C5F.A74215A4@caldera.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-07/txt/msg00178.txt.bz2 On Wed, Jul 10, 2002 at 09:53:35AM -0400, Petr Sorfa wrote: > Hi Daniel, > > > I'd rather save a pointer the symbol for the main function, or > > something along those lines - do you think that's workable? > Sounds good. Note that I'm making the assumption that the symbol is > associated with a type that is only associated with that symbol (iff). > > I think it should be API driven, like set_main_symbol () and > get_main_symbol () and situated in symtab.c alonside set_main_name() and > main_name(). Yep, that's about what I had in mind. How about: set_main_name () set_main_symbol () is_main_symbol () - if a main symbol is set, check if it is the same symbol - otherwise, check if it has the same name as passed to set_main_name (with appropriate care for when we change object files.... to one without a DWARF-2 main symbol, even...) -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer