Alan Coopersmith wrote:
> J?rgen Keil wrote:
>   
>> Why has gdb become that unstable?  Have there been any
>> changes to the X11 compilation environment recently that
>> could explain these crashes?  I just checked an snv_77 and
>> snv_81 box, and on both of them the above tests don't crash
>> gdb, so it might be a change introduced somewhere between
>> snv_82 and snv_85...
>>     
>
> When we upgraded libX11 from our previous X11R6 version
> to the current X11R7 one in nv_85 I accidentally left the
> -g flag in the Makefile on putback, so the debugging information
> is included now that wasn't before.
>
> I can't explain why gdb crashes on the -g output from Studio 11 cc
> though.
>
>   
There are several extensions to DWARF employed by Sun Studio compilers, 
mainly by C++ one, but not limited to one (). So apparently gdb is not 
capable of dealing with those extensions. If at all possible, switch to 
dbx; in my opinion, it tends to be more stable (in a broad sense) than 
gdb on Solaris; 'gdb on' and this link may help you: 
http://blogs.sun.com/dbx/entry/gdb_vs_dbx_commands_mapping

Ref:
http://mediacast.sun.com/users/Chris_Quenelle/media/Sun_Dwarf2_Extensions.txt
http://wikis.sun.com/display/SunStudio/Dwarf+Differences+between+Sun+Studio+and+GCC+compilers

Reply via email to