"Chris" == Chris Moller<cmoller@redhat.com> writes:
Chris> The attached patch fixes bug 11067 "p<enum constant> should print the
Chris> constant's value" by providing a means of setting a format string to
Chris> be used in printing enums. The string is set with
Chris> set enum-fmt<string>
I would rather not introduce a new option for this, particularly a
formatting option. We don't have this sort of thing elsewhere in gdb --
we just pick a printing format or two.
I re-read the thread on the archer list. I propose having it print
like:
$2 = ENUMERATOR = (enum tag) 23
However, i would suppress the extra stuff in structs and when printing
in summary mode.