From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12485 invoked by alias); 25 Apr 2012 21:47:30 -0000 Received: (qmail 12472 invoked by uid 22791); 25 Apr 2012 21:47:29 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Apr 2012 21:47:08 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3PLl7AT020045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 25 Apr 2012 17:47:07 -0400 Received: from host2.jankratochvil.net (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3PLl2b9020453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 25 Apr 2012 17:47:05 -0400 Date: Wed, 25 Apr 2012 21:49:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [5/10] add notion of included symtabs Message-ID: <20120425214701.GA25084@host2.jankratochvil.net> References: <878vhjbqrq.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878vhjbqrq.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00892.txt.bz2 On Wed, 25 Apr 2012 20:38:49 +0200, Tom Tromey wrote: > --- a/gdb/block.h > +++ b/gdb/block.h [...] > + /* If we're iterating over a single block, this is always -1. > + Otherwise, it holds the index of the current "included" symtab in > + the canonical symtab, with -1 meaning the canonical symtab the canonical symtab (therefore symtab->includes[idx]) > + itself. */ > + > + int idx; [...] > --- a/gdb/symtab.h > +++ b/gdb/symtab.h > @@ -832,6 +832,23 @@ struct symtab > /* struct call_site entries for this compilation unit or NULL. */ > > htab_t call_site_htab; > + > + /* If non-NULL, then this points to a NULL-terminated vector of > + included symbol tables. When searching the static or global > + block of this symbol table, the corresponding block of all > + included symbol tables will also be searched. Note that this > + list must be flattened -- the symbol reader is responsible for > + ensuring that this vector contains the transitive closure of all > + included symbol tables. */ > + > + struct symtab **includes; [...] Thanks, Jan