This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PR11067 patch
- From: Tom Tromey <tromey at redhat dot com>
- To: Chris Moller <cmoller at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 08 Feb 2010 14:54:22 -0700
- Subject: Re: PR11067 patch
- References: <4B6D70A3.2090208@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "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.
Tom