This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [1/4] RFC: refactor partial symbol tables
- From: Eli Zaretskii <eliz at gnu dot org>
- To: tromey at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 16 Jan 2010 10:03:49 +0200
- Subject: Re: [1/4] RFC: refactor partial symbol tables
- References: <m34ommc2vl.fsf@fleche.redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Tom Tromey <tromey@redhat.com>
> Date: Fri, 15 Jan 2010 17:25:18 -0700
>
> This patch does the bulk of the work.
>
> I went through gdb and looked at all uses of partial symbol tables. I
> moved all the psymtab code into a new file, and changed all the code in
> gdb to call via a new struct of function pointers.
>
> Mostly this was straightforward. The only surprise that I can remember
> was that Ada walks the psymtabs directly.
>
> Now, symbol readers are allowed to include psympriv.h and access partial
> symbol tables. However, generic code should not do this. This ensures
> that partial symbol tables don't leak out into the main part of gdb.
>
> The new "quick" function API is entirely ad hoc, based on existing gdb
> code. I consolidated functions in a few places, but perhaps more could
> be done here.
Thanks.
Please look at the relevant sections of gdbint.texinfo and see if
something needs an update there, due to these changes.