RFC: enum pretty-printing support

Jan Kratochvil jan.kratochvil@redhat.com
Tue Jan 10 21:23:00 GMT 2012


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

There is the obvious question this may work automatically if all the values of
enum type are in the form 2^n and fall back to the GDB default way otherwise.
Also it would not display parentheses if the variable value is just 2^n.

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


Thanks,
Jan



More information about the Gdb-patches mailing list