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: [PATCH] Function-like cast notation support


>>>>> "SÃrgio" == SÃrgio Durigan JÃnior <sergiodj@redhat.com> writes:

SÃrgio> The following patch adds support for function-like cast notation
SÃrgio> on GDB.

This looks good.

It could use a NEWS entry.  I suggest waiting until my NEWS change goes
in, then adding it to the C++ improvements section.

SÃrgio> Currently it only works for primitive data type (int,
SÃrgio> char, double, etc), but I intend to send another patch soon that
SÃrgio> will implement this feature for classes as well.

Hmm, you seem to have implemented this already...

SÃrgio> +typebase_single
SÃrgio>  	:	TYPENAME
SÃrgio>  			{ $$ = $1.type; }

... because the lexer can return TYPENAME for a class name.

SÃrgio> +		{ "void"      "void"		"'a'"		"void" }

I didn't realize this was supposed to work... learn something every day
:-)

This patch is ok.  Thanks.

For future reference, it is worth noting in the email how and whether
you regression tested it.  I assume that everybody does this, but it is
nice to be explicit about it.  At least in my case, this occasionally
helps me realize that I forgot.

Tom


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