From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13949 invoked by alias); 6 Jan 2008 04:35:06 -0000 Received: (qmail 13940 invoked by uid 22791); 6 Jan 2008 04:35:05 -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; Sun, 06 Jan 2008 04:34:47 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 24C682A9642 for ; Sat, 5 Jan 2008 23:34:45 -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 Pl5u9+7RYc4U for ; Sat, 5 Jan 2008 23:34:45 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 941C32A9641 for ; Sat, 5 Jan 2008 23:34:44 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 59EA7E7ACB; Sat, 5 Jan 2008 20:34:37 -0800 (PST) Date: Sun, 06 Jan 2008 04:35:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [commit/Ada] Add handling of "ptype TYPE_NAME.FIELD0.[...].FIELDN" expressions Message-ID: <20080106043437.GI5975@adacore.com> References: <20080104151340.GC3758@adacore.com> <20080105185319.GA10591@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080105185319.GA10591@caradoc.them.org> 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/msg00093.txt.bz2 > > (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. Actually, it isn't. But it seemed like a natural extension... -- Joel