From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2150 invoked by alias); 13 Feb 2010 18:56:21 -0000 Received: (qmail 2140 invoked by uid 22791); 13 Feb 2010 18:56:20 -0000 X-SWARE-Spam-Status: No, hits=-7.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 13 Feb 2010 18:56:16 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1DIuEsW002568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 13 Feb 2010 13:56:15 -0500 Received: from qcore.mollernet.net (vpn-234-142.phx2.redhat.com [10.3.234.142]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1DIuEFN009101; Sat, 13 Feb 2010 13:56:14 -0500 Message-ID: <4B76F5CE.30704@redhat.com> Date: Sat, 13 Feb 2010 18:56: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: Jan Kratochvil CC: gdb-patches@sourceware.org Subject: Re: pr 11067 patch References: <4B737180.4050802@redhat.com> <20100211092950.GC2907@adacore.com> <20100212041137.GE2907@adacore.com> <4B75783D.6050103@redhat.com> <20100213114933.GA595@host0.dyn.jankratochvil.net> In-Reply-To: <20100213114933.GA595@host0.dyn.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00339.txt.bz2 On 02/13/10 06:49, Jan Kratochvil wrote: > Hi Chris, > > On Fri, 12 Feb 2010 16:48:13 +0100, Chris Moller wrote: > >> --- gdb/testsuite/gdb.mi/mi-var-display.exp 1 Jan 2010 07:32:03 -0000 1.34 >> +++ gdb/testsuite/gdb.mi/mi-var-display.exp 12 Feb 2010 15:38:07 -0000 >> mi_gdb_test "-var-evaluate-expression anone" \ >> - "\\^done,value=\"A\"" \ >> + "\\^done,value=\"A = \\(enum\\)0\"" \ >> "eval variable anone" >> > > While it works with Eclipse should this format be used even for MI? > MI doc says: > returns its value as a string. > > It is true it may be the same what `print' doc says: > By default, GDB prints a value according to its data type. > > Still IMO the representation "A = (enum)0" is not suitable for MI > as it is not the intended type of a C expression. Yeah, as I said last week, I've never been a fan of breaking historical behaviour, something my original patch was designed to avoid. This has gone way past ridiculous--it's time this whole thing was resolved as WONTFIX and closed. cm