This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units
On Wed, Jan 04, 2006 at 04:26:28PM -0800, Jim Blandy wrote:
> On 1/4/06, Fred Fish <fnf@specifix.com> wrote:
> > 2006-01-04 Fred Fish <fnf@fishfood.ninemoons.com>
> >
> > * parse.c (source.h): Include.
> > (parse_exp_in_context): Use static source context if no
> > other context found.
>
> Thanks for revising this!
>
> Would it be hard to find the innermost block that contains the current
> line? Say, a sal->pc->block mapping? We could fall back to the
> static block if some step failed.
I think it'd be pretty complicated. The line may map to multiple
functions, et cetera et cetera.
--
Daniel Jacobowitz
CodeSourcery