This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/13276] New: missing debug information (dwarf2) for global variable


When I compile the following with gcc 3.3.2 (configured with --with-dwarf2) in
C++ mode no debug information is produced for 'var' -- there is no
DW_TAG_variable entry.  When compiled in C mode the debug info is present.

struct T { int a, b, c; };
extern struct T var;
struct T var;

> gcc -v
Reading specs from
/arm/eda/tools/gnu/gcc/3_3_2-nothreads/linux_rh_9-x86/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: ../src-linux_rh_9-x86/configure
--prefix=/arm/eda/tools/gnu/gcc/3_3_2-nothreads
--exec-prefix=/arm/eda/tools/gnu/gcc/3_3_2-nothreads/linux_rh_9-x86
--program-suffix=-3_3_2-nothreads --disable-threads --enable-languages=c,c++ -v
--with-dwarf2 --enable-version-specific-runtime-libs --with-gnu-as
--with-as=/arm/eda/tools/gnu/binutils/2_14/linux_rh_9-x86/bin/as-2_14
--with-gnu-ld --with-ld=/arm/eda/tools/gnu/binutils/2_14/linux_rh_9-x86/bin/ld-2_14
Thread model: single
gcc version 3.3.2

-- 
           Summary: missing debug information (dwarf2) for global variable
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sdouglass at arm dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13276


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]