Bug#492385: gcc-4.3: compiling for debugging with macros (gcc -gdwarf-2 -g3) broken
Package: gcc-4.3
Version: 4.3.1-2
Severity: normal
To be able to expand macros from inside gdb, one needs to compile with
-gdwarf-2 -g3; there's an example in the gdb info page. This example
doesn't work with gcc-4.3. I've reported this to the gdb bugtracker:
http://sourceware.org/cgi-bin/gnatsweb.pl?database=gdb&cmd=view%20audit-trail&pr=2483
The outcome is that it works with gcc-4.2, and it is a known bug
already solved in the gcc SVN.
Here's the relevant answer part from the above url:
Here's the thread with the fix. It is also on the 4.3 branch in GCC
svn:
http://gcc.gnu.org/ml/gcc-patches/2008-06/msg00642.html
I'll close this gdb bug soon.
Should Debian decide to stay with gcc 4.3.1 for lenny, could you add
the patch from the above mailing list mail to the Debian package?
Thanks,
Christian.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.3 depends on:
ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii cpp-4.3 4.3.1-2 The GNU C preprocessor
ii gcc-4.3-base 4.3.1-2 The GNU Compiler Collection (base
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libgcc1 1:4.3.1-2 GCC support library
ii libgomp1 4.3.1-2 GCC OpenMP (GOMP) support library
Versions of packages gcc-4.3 recommends:
ii libc6-dev 2.7-10 GNU C Library: Development Librari
-- no debconf information
Reply to: