From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31692 invoked by alias); 3 Feb 2010 22:43:14 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 31682 invoked by uid 22791); 3 Feb 2010 22:43:12 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Chris Moller Cc: Tom Tromey , Eric Bachalo , Project Archer Subject: Re: PR 11067 In-Reply-To: Chris Moller's message of Wednesday, 3 February 2010 16:52:40 -0500 <4B69F028.9070006@redhat.com> References: <4B68A35E.2050301@redhat.com> <4B68DC25.1090808@redhat.com> <4B69F028.9070006@redhat.com> Message-Id: <20100203224239.04338AA@magilla.sf.frob.com> Date: Wed, 03 Feb 2010 22:43:00 -0000 X-SW-Source: 2010-q1/txt/msg00051.txt.bz2 > 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