From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12725 invoked by alias); 10 Jul 2002 17:00:57 -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 12709 invoked from network); 10 Jul 2002 17:00:56 -0000 Received: from unknown (HELO tetsuo.nj.caldera.com) (63.124.204.226) by sources.redhat.com with SMTP; 10 Jul 2002 17:00:56 -0000 Received: from caldera.com (localhost.localdomain [127.0.0.1]) by tetsuo.nj.caldera.com (8.11.6/8.11.6) with ESMTP id g6AHD2403736; Wed, 10 Jul 2002 13:13:02 -0400 Message-ID: <3D2C6B1B.B9DA55FC@caldera.com> Date: Wed, 10 Jul 2002 10:18:00 -0000 From: Petr Sorfa Organization: Caldera X-Accept-Language: en MIME-Version: 1.0 To: Jim Blandy , Daniel Jacobowitz , "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> <3D2C4567.3AD10A8B@caldera.com> <20020710142554.GA26025@nevyn.them.org> <3D2C66E9.94EE977@caldera.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-07/txt/msg00189.txt.bz2 Hi Jim, Ok, during testing I realized that I have to detect DW_AT_calling before symbol creation while reading in dies and types (I had this in the original patch, but removed it thinking it was redundant.) The main reason is to call set_main_name() so that the correct program language is determined on program load before execution. set_main_symbol() is now called within new_symbol(). Petr > > Sorry, so what's the final proposal at this point? > Implement set_main_symbol(), get_main_symbol(), is_main_symbol() and > adjust the DWARF code accordingly. I've basically already done this and > I'm doing testing currently.