From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22093 invoked by alias); 11 Jul 2002 17:57:32 -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 22080 invoked from network); 11 Jul 2002 17:57:31 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 11 Jul 2002 17:57:31 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 47FDB5EA11; Thu, 11 Jul 2002 12:57:29 -0500 (EST) To: Petr Sorfa Cc: "gdb-patches@sources.redhat.com" Subject: Re: [PATCH] DWARF support for .debug_loc offsets References: <3D2DB435.AC2C6DA0@caldera.com> From: Jim Blandy Date: Thu, 11 Jul 2002 11:03:00 -0000 In-Reply-To: <3D2DB435.AC2C6DA0@caldera.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00233.txt.bz2 Petr Sorfa writes: > This patch provides support for offsets into .debug_loc. > > The patch does not include .debug_loc support in read_tag_string_type() > as the DW_AT_string_length attribute is currently being misused by GCC > (it uses it to hold the length, rather than the location to the length) > and GDB supports the incorrect form. > > There is a second part of this patch which is dependent on FORTRAN95 > support of modules and will be released later. I'm confused. If (say) a DW_AT_frame_base attribute's value uses DW_FORM_data4 or DW_FORM_data8, then that data is the offset in the .debug_loc section of a location list describing how to find the object at various points in the code. But your code seems to assume that the data in the .debug_loc section is simply the address of the object. Having location list support would be great, but if we can get Daniel's LOC_COMPUTED patch committed, adding location list support will be very simple.