This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [5/10] add notion of included symtabs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]