This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: PR 11067
- From: Roland McGrath <roland at redhat dot com>
- To: Chris Moller <cmoller at redhat dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, Eric Bachalo <ebachalo at redhat dot com>, Project Archer <archer at sourceware dot org>
- Date: Wed, 3 Feb 2010 14:42:38 -0800 (PST)
- Subject: Re: PR 11067
- References: <4B68A35E.2050301@redhat.com><m3bpg7yznc.fsf@fleche.redhat.com><4B68DC25.1090808@redhat.com><m3fx5irwx6.fsf@fleche.redhat.com><4B69F028.9070006@redhat.com>
> The simple fix is to always print both the symbolic name and the decimal
> value:
>
> > (gdb) p e
> > $1 = Val1 (= 56)
> > (gdb) p Val1
> > $2 = Val1 (= 56)
> > (gdb)
I think it should use a format consistent with p/c, e.g.:
(gdb) p 'a'
$1 = 97 'a'
(gdb) p ENUM1
$2 = (enum frobozz) 1 ENUM1
(gdb)
Thanks,
Roland