From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17345 invoked by alias); 27 Jan 2010 19:39:52 -0000 Received: (qmail 17336 invoked by uid 22791); 27 Jan 2010 19:39:51 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jan 2010 19:39:48 +0000 Received: (qmail 17964 invoked from network); 27 Jan 2010 19:39:46 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 Jan 2010 19:39:46 -0000 Date: Wed, 27 Jan 2010 19:39:00 -0000 From: Daniel Jacobowitz To: Mitar Cc: Tom Tromey , gdb@sourceware.org Subject: Re: Custom call frame description Message-ID: <20100127193940.GA3429@caradoc.them.org> Mail-Followup-To: Mitar , Tom Tromey , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00202.txt.bz2 On Wed, Jan 27, 2010 at 08:33:42PM +0100, Mitar wrote: > And in 3.0 version: > > The subrange entry may have a DW_AT_type attribute to describe the > type of object, called the > basis type, of whose values this subrange is a subset. > > And from that I understand that it is meant to describe a base type of > an array, that is a type of an each element. No, the *subrange* is a subset of the basis type. For instance, the subrange may be the range [0, 7), with a basis type of int because int is big enough to hold [0, 7). The type of the subrange is generally uninteresting for C-like languages. -- Daniel Jacobowitz CodeSourcery