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: [3/10] introduce psymtab users


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


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