From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4274 invoked by alias); 5 Jan 2008 18:53:48 -0000 Received: (qmail 4258 invoked by uid 22791); 5 Jan 2008 18:53:47 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 05 Jan 2008 18:53:23 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 6C6F298129; Sat, 5 Jan 2008 18:53:21 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 4779F98121; Sat, 5 Jan 2008 18:53:21 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JBE91-0002nn-SR; Sat, 05 Jan 2008 13:53:19 -0500 Date: Sat, 05 Jan 2008 18:53:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [commit/Ada] Add handling of "ptype TYPE_NAME.FIELD0.[...].FIELDN" expressions Message-ID: <20080105185319.GA10591@caradoc.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sourceware.org References: <20080104151340.GC3758@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080104151340.GC3758@adacore.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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/msg00088.txt.bz2 On Fri, Jan 04, 2008 at 07:13:40AM -0800, Joel Brobecker wrote: > Hello, > > The subject says it all. Before the patch, you could do: > > (gdb) ptype type_name > > But if you wanted to get the type of one field inside that type, > you would hit a limitation: > > (gdb) ptype circle.pos > Invalid attempt to select from type: "circle.pos". > > The attached patch enhances the debugger to able to do the above. Is this actually valid in Ada? You can't do this in C, which is why GDB doesn't handle it for ptype. -- Daniel Jacobowitz CodeSourcery