This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: enum pretty-printing support
>>>>> "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