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/40012] New: Bad debug info for local variables


Given the attached program compiled with

gcc -ggdb3 -o dlmod dlmod.i

the DW_AT_location for the variable 'problem' seems to be off by 16 bytes, so
when I try to examine the variable from the debugger that returns the wrong
value.

Below is some information about my compiler:

svnversion reports that I am using revision 147075.

$ gcc --version --verbose
Using built-in specs.
gcc (GCC) 4.5.0 20090503 (experimental)
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Target: i686-pc-linux-gnu
Configured with: ../trunk/configure --enable-languages=c,c++
--prefix=/usr/local
/gcc-head --enable-shared --with-system-zlib --without-included-gettext
--enable
-threads --disable-nls --enable-__cxa_atexit --enable-clocale=gnu
--enable-libst
dcxx-debug --with-arch=core2 --with-tune=core2 --enable-checking=release
--enabl
e-concept-checks --disable-libgomp --disable-libmudflap --disable-libssp
Thread model: posix


-- 
           Summary: Bad debug info for local variables
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc at magfr dot user dot lysator dot liu dot se
 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=40012


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