From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5914 invoked by alias); 15 Sep 2012 22:39:16 -0000 Received: (qmail 5897 invoked by uid 22791); 15 Sep 2012 22:39:15 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,TW_XF X-Spam-Check-By: sourceware.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Sep 2012 22:39:02 +0000 Date: Sat, 15 Sep 2012 22:39:00 -0000 From: Mark Wielaard To: Dehao Chen Cc: "H.J. Lu" , Andrew Pinski , Bryce McKinlay , Andrew Haley , Richard Henderson , Jason Merrill , Richard Guenther , GCC Patches , David Li , java@gcc.gnu.org Subject: Re: [PATCH] Set correct source location for deallocator calls Message-ID: <20120915223853.GB27191@toonder.wildebeest.org> References: <50463661.1020303@redhat.com> <1346839095.9368.1.camel@springer.wildebeest.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.9 (--) X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2012-09/txt/msg00025.txt.bz2 On Sun, Sep 16, 2012 at 12:09:04AM +0800, Dehao Chen wrote: > I tried the up-to-date addr2line on any "gcc -g" generated code, it > does not work either. This is because in the new dwarf, the > DW_AT_high_pc now actually means the size. e.g. > > <1><9b>: Abbrev Number: 2 (DW_TAG_subprogram) > <9c> DW_AT_external : 1 > <9c> DW_AT_name : bar > DW_AT_decl_file : 1 > DW_AT_decl_line : 8 > DW_AT_linkage_name: (indirect string, offset: 0x7b): _Z3barv > DW_AT_type : <0x8d> > DW_AT_low_pc : 0x400583 > DW_AT_high_pc : 0x37 0x0 > DW_AT_frame_base : 1 byte block: 9c (DW_OP_call_frame_cfa) > DW_AT_GNU_all_call_sites: 1 > DW_AT_sibling : <0xff> > > However, addr2line still thinks DW_AT_high_pc means "high_pc". I think > we should wait for binutil to catch up with gcc. I thought it had some months ago: http://sourceware.org/ml/binutils/2012-04/msg00447.html If that patch is present in your binutils and addr2line still doesn't work as intented there might be a bug or some other place to update. Thanks, Mark