http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18112
Richard Guenther changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
--- Additional Comments From nikolay at etnus dot com 2004-10-22 18:39 ---
Subject: Re: -feliminate-dwarf2-dups produces debug entries
in wrong scope
<2>: Abbrev Number: 5 (DW_TAG_typedef)
DW_AT_name: string
DW_AT_decl_file : 32
DW_AT_decl_line : 60
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-22 18:22
---
Note I could not reproduce it at all with the mainline GCC or mainline GDB or GCC
3.4.0. Note the older
versions of gdb don't understand the dwarf2 which is outputted by GCC with
-feliminate-dwarf2-dups.
--- Additional Comments From nikolay at etnus dot com 2004-10-22 18:16 ---
Subject: Re: -feliminate-dwarf2-dups produces debug entries
in wrong scope
This is what I did:
*** Compiling ../../src/tx_ttf_string.cxx ***
/home/compilers/gnu/gcc/3.4.1/i386-linux/bin/g++ -MD -g
-f
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-22 17:43
---
Complation of libstdc++ or the small program (you did not say), I did it with the
small program and
got that output.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18112
--- 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 C
--- 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