From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26269 invoked by alias); 6 Oct 2006 20:49:54 -0000 Received: (qmail 26261 invoked by uid 22791); 6 Oct 2006 20:49:54 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 06 Oct 2006 20:49:49 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GVwde-0004dz-BX for gdb-patches@sourceware.org; Fri, 06 Oct 2006 16:49:46 -0400 Date: Fri, 06 Oct 2006 20:49:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [RFA/dwarf2] Fix PR/2018 - set array type names Message-ID: <20061006204946.GA17825@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20061006192303.GA1095@adacore.com> <20061006192758.GA15058@nevyn.them.org> <20061006203904.GA1059@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061006203904.GA1059@adacore.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00068.txt.bz2 On Fri, Oct 06, 2006 at 01:39:04PM -0700, Joel Brobecker wrote: > > I don't think I looked at this the first time you sent it. The hack is > > disgusting, but that's a problem for another day. I think the comment > > in GCC is simply incorrect for DWARF-2, and the array should have the > > correct range type. > > I am not sure which hack you refer to; if you're talking about > the encoding we're using, I also agree that it's not very elegant. > It's a artifact that comes from old times when dwarf2 wasn't available > (and still isn't always available on certain targets). However, we > *are* at AdaCore working on producing more standard dwarf, so eventually > the array index should have the correct type. We've made some progress > in that direction already, but it will take a LOT of work to complete. Good. Glad to know I understood what it was doing correctly :-) -- Daniel Jacobowitz CodeSourcery