This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Typedef support for linespecs
- From: Daniel Jacobowitz <drow at false dot org>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 11 Nov 2009 18:01:49 -0500
- Subject: Re: [RFA] Typedef support for linespecs
- References: <4AFB3F69.9070107@redhat.com>
On Wed, Nov 11, 2009 at 02:49:13PM -0800, Keith Seitz wrote:
> ChangeLog
> 2009-11-11 Keith Seitz <keiths@redhat.com>
>
> * linespec.c (lookup_prefix_sym): Lookup the symbol
> in both STRUCT_DOMAIN and VAR_DOMAIN.
>
> testsuite/ChangeLog
> 2009-11-11 Keith Seitz <keiths@redhat.com>
>
> * gdb.cp/classes.cc (ByAnyOtherName): Add typedef and
> use it instead of "Foo".
> * gdb.cp/classes.exp (do_tests): Add a test to access
> a method through a typedef'd class name.
OK. I still hate linespecs, though.
(Seriously... if we figure out that it isn't a file:line, we should
use the normal expression parser for an expression portion of
it... yes, I do realize just how difficult this would be, but the
inconsistencies drive folks mad.)
--
Daniel Jacobowitz
CodeSourcery