From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6976 invoked by alias); 15 Sep 2012 18:06:22 -0000 Received: (qmail 6955 invoked by uid 22791); 15 Sep 2012 18:06:21 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_XF X-Spam-Check-By: sourceware.org Received: from mail-vb0-f47.google.com (HELO mail-vb0-f47.google.com) (209.85.212.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Sep 2012 18:06:08 +0000 Received: by vbbez10 with SMTP id ez10so1165889vbb.20 for ; Sat, 15 Sep 2012 11:06:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.32.233 with SMTP id m9mr5092463vei.23.1347732367735; Sat, 15 Sep 2012 11:06:07 -0700 (PDT) Received: by 10.58.102.100 with HTTP; Sat, 15 Sep 2012 11:06:07 -0700 (PDT) In-Reply-To: References: <50243480.7090803@redhat.com> <50254A50.8070208@redhat.com> <50255B35.9020705@redhat.com> <50258712.4070002@redhat.com> <502E6774.8050609@redhat.com> <503F7876.7030606@redhat.com> <503F84A9.8010504@redhat.com> <503F95D8.5010506@redhat.com> <50463661.1020303@redhat.com> <1346839095.9368.1.camel@springer.wildebeest.org> Date: Sat, 15 Sep 2012 18:06:00 -0000 Message-ID: Subject: Re: [PATCH] Set correct source location for deallocator calls From: "H.J. Lu" To: Dehao Chen Cc: Andrew Pinski , Mark Wielaard , Bryce McKinlay , Andrew Haley , Richard Henderson , Jason Merrill , Richard Guenther , GCC Patches , David Li , java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00022.txt.bz2 On Sat, Sep 15, 2012 at 9:09 AM, 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. > So, the meaning of DW_AT_high_pc in DWARF4 is different from DWARF3? -- H.J.