gdb 6.5 on Solaris x86 can't debug programs from g++ 4.2.0

Allan K Pratt <[email protected]>
Newsgroups gmane.comp.gdb.general
Message-ID <OFC7E3096F.6E0B981C-ON88257352.006D3C30-88257352.0074661D@us.ibm.com>
I have gdb 6.5 on Solaris-for-x86, and I find that I can't run programs 
compiled with g++4.2.0. When I run these programs under GDB, the debugee 
dumps core.

Furthermore, when I try to use gdb to read the core file generated by the 
first crash, gdb dumps core.

In addition, the "dbx" command supplied by Sun in SunStudio 12 for 
Solaris-on-x86 also crashes when debugging a program compiled by g++ 
4.2.0.

When I dump the uninstrumented 
/usr/p/tools/sunos5_x86/install/gcc/4.2.0/lib/amd64/libstc++.so.6 using 
dwarfdump -l I get this error message:
    dwarfdump ERROR: dwarf_linesrc: DW_DLE_LINE_FILE_NUM_BAD (61)

I downloaded and built gdb 6.6 and it does not crash when running a C++ 
program built with g++ 4.2.0. 

It doesn't seem reasonable that I have to get the absolute newest release 
in order to debug successfully. Also, it is unfriendly of g++ to be 
incompatible with the vendor's debugger on a current, supported platform.

Is this interesting? Where do I report a bug/crash like this so it gets 
the right people's attention? Thanks.

-- Allan Pratt, [email protected]
Rational software division of IBM
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.