From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12927 invoked by alias); 30 Dec 2004 20:56:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12865 invoked from network); 30 Dec 2004 20:56:47 -0000 Received: from unknown (HELO dberlin.org) (68.164.203.246) by sourceware.org with SMTP; 30 Dec 2004 20:56:47 -0000 Received: from [129.34.20.23] (account dberlin HELO linux-009002218064.watson.ibm.com) by dberlin.org (CommuniGate Pro SMTP 4.2.6) with ESMTP-TLS id 7632139; Thu, 30 Dec 2004 15:56:46 -0500 Subject: Re: Gdb generates location list without DW_AT_frame_base From: Daniel Berlin To: Daniel Jacobowitz Cc: "H. J. Lu" , gcc@gcc.gnu.org, GDB In-Reply-To: <20041230202828.GA11668@nevyn.them.org> References: <20041222011627.GA15293@lucon.org> <41C9577D.3010509@redhat.com> <20041222182449.GA29407@lucon.org> <20041223034318.GA19580@nevyn.them.org> <20041230192424.GA16440@lucon.org> <20041230193618.GA16661@lucon.org> <20041230195642.GA16984@lucon.org> <20041230200720.GA11027@nevyn.them.org> <20041230202346.GA17311@lucon.org> <20041230202828.GA11668@nevyn.them.org> Content-Type: text/plain Date: Thu, 30 Dec 2004 20:56:00 -0000 Message-Id: <1104440193.20792.38.camel@DYN253786YKT> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00135.txt.bz2 > And what's in the location lists? If it's DW_OP_fbreg, then I presume > it's a GCC bug. According to my reading of the DWARF spec, anyway. It is. I added code to tell it when not to use fbreg, but i only told it not to use fbreg in the location expression when we were outputting the frame_base attribute. However, it appears we don't output a frame base attribute for external procedures, so we need to tell it it can't use if we don't have a frame base attribute. You just need to change when loc_descriptor is called with a second parameter of true/1 to fix this. --Dan