From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21853 invoked by alias); 17 Jun 2003 00:09: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 21804 invoked from network); 17 Jun 2003 00:09:24 -0000 Received: from unknown (HELO smtp2.Stanford.EDU) (171.64.14.116) by sources.redhat.com with SMTP; 17 Jun 2003 00:09:24 -0000 Received: (from root@localhost) by smtp2.Stanford.EDU (8.12.9/8.12.9) id h5H09OpW018526 for gdb@sources.redhat.com; Mon, 16 Jun 2003 17:09:24 -0700 (PDT) Received: from jackfruit.Stanford.EDU (jackfruit.Stanford.EDU [171.64.38.136]) by smtp2.Stanford.EDU (8.12.9/8.12.9) with ESMTP id h5H09JrH018494; Mon, 16 Jun 2003 17:09:19 -0700 (PDT) Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h5H09Jr28941; Mon, 16 Jun 2003 17:09:19 -0700 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Andrew Cagney Cc: Elena Zannoni , Daniel Jacobowitz , gdb , Jim Blandy Subject: Re: DW_AT_specification and partial symtabs References: <20030612170545.GA16995@nevyn.them.org> <16104.47067.182016.78574@localhost.redhat.com> <20030613133414.GB29641@nevyn.them.org> <16105.55964.91811.625007@localhost.redhat.com> <3EE9EFFE.6050607@redhat.com> From: David Carlton Date: Tue, 17 Jun 2003 00:09:00 -0000 In-Reply-To: <3EE9EFFE.6050607@redhat.com> 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-06/txt/msg00327.txt.bz2 On Fri, 13 Jun 2003 11:38:38 -0400, Andrew Cagney said: > If psymtab's are dumped (or at least burried) the core GDB <-> > symtab interface is simplified/tightened, people can change the > internals without breaking everything. David, I belive, has been > working in that direction. Yeah. I was thinking about this a little bit over the weekend (albeit while not at a computer, so I haven't actually looked at GDB's source code): from the point of view of looking up symbols by names, I don't think we have too far to go. If memory serves me well, the only functionality that I haven't encapsulated in that regard is symbol completion and regexp matching. It would be easy to add methods for those two to the dictionary interface; once we do that, I think there would be no particular technical barrier to hiding the psymtab aspect of name lookup inside the dictionaries. Though it would take some restructuring of code elsewhere to actually achieve this: right now, dictionaries live in blocks, and blocks live in symtabs, not psymtabs. So if we really want to start getting rid of psymtabs, we'd have to rethink the symtab/psymtab data structures themselves, so there's just one place to look for information of various sorts. (Which would presumably involve turning them opaque as well.) Still, it's a start. It would be an interesting exercise to think about what interface this new opaque symtab data structure would export, and how much of that interface could be implemented lazily in the DWARF 2 case... David Carlton carlton@math.stanford.edu