[3/10] introduce psymtab users

Jan Kratochvil jan.kratochvil@redhat.com
Fri Apr 27 10:14:00 GMT 2012


On Wed, 25 Apr 2012 20:21:23 +0200, Tom Tromey wrote:
[...]
> +  struct partial_symtab **users;
[...]
> @@ -760,6 +769,11 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name,
>  static struct symtab *
>  psymtab_to_symtab (struct partial_symtab *pst)
>  {
> +  /* If it is a shared psymtab, find an unshared psymtab that includes
> +     it.  Any such psymtab will do.  */
> +  while (pst->users != NULL)
> +    pst = pst->users[0];

Currently pst->users is used in the whole patchset only
for 'pst->users == NULL', 'pst->users != NULL' and for 'pst->users[0]'.
I think the array can be dropped.


Thanks,
Jan



More information about the Gdb-patches mailing list