From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3638 invoked by alias); 5 Jun 2007 10:37:32 -0000 Received: (qmail 3628 invoked by uid 22791); 5 Jun 2007 10:37:32 -0000 X-Spam-Check-By: sourceware.org Received: from mx.qwghlm.org (HELO mx.qwghlm.org) (212.69.37.249) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Jun 2007 10:37:25 +0000 Received: from mwk by mx.qwghlm.org with local (Exim 3.36 #1 (Debian)) id 1HvWPd-0000LB-00; Tue, 05 Jun 2007 11:37:17 +0100 Date: Tue, 05 Jun 2007 10:37:00 -0000 From: Matt Kern To: Daniel Jacobowitz Cc: gdb@sourceware.org Subject: Re: DWARF2 FDE Address Mismatch Message-ID: <20070605103717.GA29353@pling.qwghlm.org> References: <20070601122049.GA32523@pling.qwghlm.org> <20070601134355.GC2734@them.org> <20070601142613.GA19779@pling.qwghlm.org> <20070601171454.GA4992@them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070601171454.GA4992@them.org> User-Agent: Mutt/1.5.9i 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: 2007-06/txt/msg00039.txt.bz2 Okay -- I have a patch which works for our arch. I haven't tested it on a stable arch yet though to ensure it doesn't break anything. The change is to call read_encoded_value() if eh_frame_p is set; otherwise dwarf2_read_address() is called. I have modified dwarf2_read_address to read addresses of size TARGET_ADDR_BIT rather than TARGET_INT_BIT. > For .eh_frame we have to do this funny dance with GCC to determine the > "right" behavior. For .debug_frame, there is a standard and we should > be following it - and so should GCC. What does it have to say? If it > says "the size of an address on the target machine" then we should > probably use TARGET_ADDR_BIT; otherwise I'm not sure. I think this > format ambiguity has come up before. >From "7.5.4 Attribute Encodings": "address Represented as an object of appropriate size to hold an address on the target machine (DW_FORM_addr)." Matt -- Matt Kern http://www.undue.org/