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: [RFA] Typedef support for linespecs


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


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