From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24981 invoked by alias); 15 Sep 2012 22:31:56 -0000 Received: (qmail 24963 invoked by uid 22791); 15 Sep 2012 22:31:55 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00 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:31:29 +0000 Date: Sat, 15 Sep 2012 22:31: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: <20120915223122.GA27191@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/msg00024.txt.bz2 On Sun, Sep 16, 2012 at 06:03:24AM +0800, Dehao Chen wrote: > The dwarf4 specification says: > > If the value of the DW_AT_high_pc is of class address, it is the > relocated address of the first location past the last instruction > associated with the entity; if it is of class constant, the value is > an unsigned integer offset which when added to the low PC gives the > address of the first location past the last instruction associated > with the entity. > > However, I'm not sure how to tell how the DW_AT_high_pc's class is > represented... You look at the form in which the attribute is encoded. If it is DW_FORM_addr then it is of class address, otherwise (DW_FORM_data1, DW_FORM_data2, DW_FORM_data4, DW_FORM_data8, DW_FORM_sdata or DW_FORM_udata) it is of class constant. Cheers, Mark