From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24335 invoked by alias); 3 Feb 2010 21:52:48 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 24324 invoked by uid 22791); 3 Feb 2010 21:52:47 -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: <4B69F028.9070006@redhat.com> Date: Wed, 03 Feb 2010 21:52: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: Eric Bachalo , Project Archer Subject: PR 11067 References: <4B68A35E.2050301@redhat.com> <4B68DC25.1090808@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2010-q1/txt/msg00050.txt.bz2 On 02/03/10 13:33, Tom Tromey wrote: > Then how about http://sourceware.org/bugzilla/show_bug.cgi?id=11067 ? > I just happened to run across this the other day; if it doesn't suit, I > can dig through bugzilla and find something else. > The enhancement req reads > When I print a variable, printing the symbolic name for its value is right, but > when I print the symbolic name, gdb should print its numeric value instead (or > in addition). > 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) That's a one-line change in c-valprint.c. Trying to differentiate between those two cases looks like it would be significantly more difficult. Would the one-line change do? Or does the fix need to do exactly what the request says? Chris > Tom >