From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8238 invoked by alias); 16 May 2003 23:23:26 -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 8146 invoked from network); 16 May 2003 23:23:26 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by sources.redhat.com with SMTP; 16 May 2003 23:23:26 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h4GNNPi13637; Fri, 16 May 2003 16:23:25 -0700 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Daniel Jacobowitz Cc: gdb Subject: Re: dwarves, hierarchies, and cross-references References: <20030510190108.GA15014@nevyn.them.org> From: David Carlton Date: Fri, 16 May 2003 23:23:00 -0000 In-Reply-To: <20030510190108.GA15014@nevyn.them.org> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00254.txt.bz2 On Sat, 10 May 2003 15:01:08 -0400, Daniel Jacobowitz said: > On Fri, May 09, 2003 at 04:14:18PM -0700, David Carlton wrote: >> * When parsing E via a cross-reference, figure out its context, so we >> can name it correctly. This seems like a plausible idea to me; I'm >> only worried that it might be a little inefficient at times. > Yes. We already read in the whole CU at a time and build the DIE > structure in memory, and then walk the DIE structure to build types. > All we have to do is increase the memory usage of the DIEs slightly by > adding a backchain up the hierarchy. A simliar thing works for > inter-CU references. Then we can walk up the chain looking for > enclosing classes or namespaces, and get their names; and we have a > DIE->name convertor. All right, that's what I've done; it wasn't too bad. I'll check it into my branch and post patches in a bit, for benefit of the curious. David Carlton carlton@math.stanford.edu