This is the mail archive of the
mailing list for the Archer project.
Re: PR 11067
On Wed, Feb 03, 2010 at 03:48:20PM -0700, Tom Tromey wrote:
> >>>>> "Roland" == Roland McGrath <firstname.lastname@example.org> writes:
> Roland> I think it should use a format consistent with p/c, e.g.:
> Roland> (gdb) p 'a'
> Roland> $1 = 97 'a'
> Roland> (gdb) p ENUM1
> Roland> $2 = (enum frobozz) 1 ENUM1
> Works for me. Chris, please do it this way, thanks.
FWIW, we've had trouble in the past with the 97 'a' output, because
you get something out that you can't paste back in (not a valid
expression). I know I did when working on C++ template value
parameters, but that's a special case. More importantely, I believe
MI frontends had some trouble.
Roland's example is unintuitive to me since "1 ENUM1" just makes me
think "what is that? it's not C, how are those two things related?".
The closest C language version would be "ENUM1 = 1".