From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1714 invoked by alias); 3 Feb 2010 23:14:26 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 1705 invoked by uid 22791); 3 Feb 2010 23:14:25 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Date: Wed, 03 Feb 2010 23:14:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: Roland McGrath , Chris Moller , Eric Bachalo , Project Archer Subject: Re: PR 11067 Message-ID: <20100203231408.GA6397@caradoc.them.org> Mail-Followup-To: Tom Tromey , Roland McGrath , Chris Moller , Eric Bachalo , Project Archer References: <4B68A35E.2050301@redhat.com> <4B68DC25.1090808@redhat.com> <4B69F028.9070006@redhat.com> <20100203224239.04338AA@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SW-Source: 2010-q1/txt/msg00054.txt.bz2 On Wed, Feb 03, 2010 at 03:48:20PM -0700, Tom Tromey wrote: > >>>>> "Roland" == Roland McGrath 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