From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3896 invoked by alias); 3 Feb 2010 23:21:08 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 3886 invoked by uid 22791); 3 Feb 2010 23:21:07 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B6A04DA.4040203@redhat.com> Date: Wed, 03 Feb 2010 23:21:00 -0000 From: Chris Moller User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Tom Tromey CC: Roland McGrath , Eric Bachalo , Project Archer Subject: Re: PR 11067 References: <4B68A35E.2050301@redhat.com> <4B68DC25.1090808@redhat.com> <4B69F028.9070006@redhat.com> <20100203224239.04338AA@magilla.sf.frob.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2010-q1/txt/msg00055.txt.bz2 On 02/03/10 17:48, 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. > Okay, a whole 5-line patch yields (gdb) p e $1 = (enum E) 56 Val1 (gdb) p Val1 $2 = (enum E) 56 Val1 (gdb) (The enum, BTW, is num E { Val1 = 56, Val2 }; because you can find a 0 any old place.) Personally, I think $2 = (enum E) 56 Val1 is a bit hard to read. I'd vote for something like $2 = (enum E)56 'Val1' But whatever... > Tom >