This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 11067


On Wed, Feb 03, 2010 at 03:48:20PM -0700, Tom Tromey wrote:
> >>>>> "Roland" == Roland McGrath <roland@redhat.com> 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".

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]