From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14435 invoked by alias); 5 Jan 2008 14:59:09 -0000 Received: (qmail 14426 invoked by uid 22791); 5 Jan 2008 14:59:08 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 05 Jan 2008 14:58:51 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 282922A9634; Sat, 5 Jan 2008 09:58:49 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xKpkSn8E+nGH; Sat, 5 Jan 2008 09:58:49 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 9FAFF2A960B; Sat, 5 Jan 2008 09:58:48 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id DF9E8E7ACB; Sat, 5 Jan 2008 06:58:40 -0800 (PST) Date: Sat, 05 Jan 2008 14:59:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [commit/Ada] Add handling of "ptype TYPE_NAME.FIELD0.[...].FIELDN" expressions Message-ID: <20080105145840.GE5975@adacore.com> References: <20080104151340.GC3758@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i 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: 2008-01/txt/msg00080.txt.bz2 > > 2008-01-04 Joel Brobecker > > > > * ada-exp.y (chop_separator): New function. > > (write_selectors): Rewrite to re-use chop_separator. > > (ada_nget_field_index, get_symbol_field_type): New functions. > > (write_var_or_type): Add support for "ptype TYPENAME.FIELD" > > expressions. > > Is this an Ada-only problem? If not, why are we fixing it only for > Ada? I haven't tried with C, so I don't know (I am working with our testsuite and trying to fix all the failures I get). The fix is necessarily Ada-specific because the parser is parsing an Ada expression and needs to know about the underlying encoding. -- Joel