From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19286 invoked by alias); 4 Dec 2003 17:49:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19269 invoked from network); 4 Dec 2003 17:49:37 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 4 Dec 2003 17:49:37 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 881C747D5B; Thu, 4 Dec 2003 09:49:39 -0800 (PST) Date: Thu, 04 Dec 2003 17:49:00 -0000 From: Joel Brobecker To: Elena Zannoni Cc: Andreas Schwab , gdb-patches@sources.redhat.com Subject: Re: [PATCH] Handle DW_TAG_subrange_type Message-ID: <20031204174939.GG1652@gnat.com> References: <16335.26147.29714.759783@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16335.26147.29714.759783@localhost.redhat.com> User-Agent: Mutt/1.4i X-SW-Source: 2003-12/txt/msg00120.txt.bz2 > Can you post an example of the debug info you see for Ada in this > case, just for the record? In addition to the example posted by Andreas, here is the code in GCC that generates these subrange types: static dw_die_ref subrange_type_die (tree type) { dw_die_ref subtype_die; dw_die_ref subrange_die; tree name = TYPE_NAME (type); subtype_die = base_type_die (TREE_TYPE (type)); if (TREE_CODE (name) == TYPE_DECL) name = DECL_NAME (name); subrange_die = new_die (DW_TAG_subrange_type, comp_unit_die, type); add_name_attribute (subrange_die, IDENTIFIER_POINTER (name)); if (TYPE_MIN_VALUE (type) != NULL) add_bound_info (subrange_die, DW_AT_lower_bound, TYPE_MIN_VALUE (type)); if (TYPE_MAX_VALUE (type) != NULL) add_bound_info (subrange_die, DW_AT_upper_bound, TYPE_MAX_VALUE (type)); add_AT_die_ref (subrange_die, DW_AT_type, subtype_die); return subrange_die; } So the only information we are stuffing in these types are the name, the bounds, and a reference to the parent type. -- Joel