From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21159 invoked by alias); 22 Oct 2004 17:40:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21151 invoked by alias); 22 Oct 2004 17:40:40 -0000 Date: Fri, 22 Oct 2004 17:40:00 -0000 Message-ID: <20041022174040.21150.qmail@sourceware.org> From: "nikolay at etnus dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041022142544.18112.nikolay@etnus.com> References: <20041022142544.18112.nikolay@etnus.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02889.txt.bz2 List-Id: ------- Additional Comments From nikolay at etnus dot com 2004-10-22 17:40 ------- Subject: Re: -feliminate-dwarf2-dups produces debug entries in wrong scope You need to use -feliminate-dwarf2-dups flag during compilation. Nikolay pinskia at gcc dot gnu dot org wrote: >------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-22 17:31 ------- >This is what I get one the mainline: > <1>: Abbrev Number: 120 (DW_TAG_subprogram) > DW_AT_sibling : > DW_AT_external : 1 > DW_AT_name : main > DW_AT_decl_file : 2 > DW_AT_decl_line : 6 > DW_AT_type : <86> > DW_AT_low_pc : 0x8048748 > DW_AT_high_pc : 0x80487cb > DW_AT_frame_base : 1 byte block: 55 (DW_OP_reg5) > <2>: Abbrev Number: 121 (DW_TAG_variable) > DW_AT_name : s1 > DW_AT_decl_file : 2 > DW_AT_decl_line : 7 > DW_AT_type : > DW_AT_location : 2 byte block: 91 74 (DW_OP_fbreg: -12) > >.... > <2>: Abbrev Number: 5 (DW_TAG_typedef) > DW_AT_name : string > DW_AT_decl_file : 32 > DW_AT_decl_line : 60 > DW_AT_type : <60a3> > >And some huge number of debuggin data (namespaces and such). > > > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18112