RFC: enum pretty-printing support

Tom Tromey tromey@redhat.com
Tue Jan 10 22:00:00 GMT 2012


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> On Tue, 10 Jan 2012 20:54:39 +0100, Tom Tromey wrote:
>> I'd appreciate comments on this patch.

Jan> There is the obvious question this may work automatically if all
Jan> the values of enum type are in the form 2^n and fall back to the
Jan> GDB default way otherwise.

Yeah, that might be nicer.

I will look into it.

Jan> GDB could pass the type as `enum NAME' instead of just `NAME' to
Jan> the pretty printer regex.

I thought perhaps the user would want to register it against a typedef
as well.

Tom



More information about the Gdb-patches mailing list