From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8800 invoked by alias); 10 Jul 2002 15:24:31 -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 8793 invoked from network); 10 Jul 2002 15:24:30 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 10 Jul 2002 15:24:30 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7E01E3CF5; Wed, 10 Jul 2002 11:24:27 -0400 (EDT) Message-ID: <3D2C51AB.1020106@ges.redhat.com> Date: Wed, 10 Jul 2002 08: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: Daniel Jacobowitz , Petr Sorfa Cc: "gdb-patches@sources.redhat.com" Subject: Re: [PATCH] DW_AT_calling_convention support References: <3D2B5385.997D474D@caldera.com> <20020709211520.GA21948@nevyn.them.org> <3D2B576E.85B28074@caldera.com> <20020709215812.GA966@nevyn.them.org> <3D2C3C5F.A74215A4@caldera.com> <20020710140354.GA25081@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-07/txt/msg00182.txt.bz2 > 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...) Just BTW, be open minded (be willing to completly re-think) with set_main_name() et.al. They were added to dress up a hack that came in via java. Andrew