This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [5/10] add notion of included symtabs
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 25 Apr 2012 23:47:01 +0200
- Subject: Re: [5/10] add notion of included symtabs
- References: <878vhjbqrq.fsf@fleche.redhat.com>
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