This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [3/10] introduce psymtab users
- 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: Fri, 27 Apr 2012 09:25:30 +0200
- Subject: Re: [3/10] introduce psymtab users
- References: <87haw7brks.fsf@fleche.redhat.com>
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