Hello,

A more current GDB is going to work better with GCC 3.0.3 
(http://sources.redhat.com/gdb/current/).  Can I sugges trying that and 
then, if things still fail, fileing a bug report 
(http://sources.redhat.com/gdb/bugs/).

Andrew

> Hello Friends,
>  
> I HAVE DOWNLOADED 'binutils' & 'gcc-3.0.3' BINARIES FOR SOLARIS 7 AND
> SUCCESSFULLY INSTALLED THEM. TO TEST THE COMPILER I HAVE WRITTEN A SMALL PROGRAM :
>  
> ********----------------------------Begin--------------------------------------
>  
> #include <iostream.h>
>  
> int main (){
>  
> cout << " This is test program" << endl;
> return 0;
>  
> }
>  
> ********------------------------------End--------------------------------------
>  
> WHEN COMPILED IT IS 'OK' (compiled) BUT WHEN I RUN THE PROGRAM IT CORE DUMPED :
>  
> ********---------------------------Begin---------------------------------------
>  
> student4%>g++ -o testrun test.cpp
> student4%>./ testrun
> Segmentation Fault (core dumped)
>  
> ********----------------------------End----------------------------------------
>  
> THEN I HAVE DOWNLOADED 'gdb' AND INSTALLED SUCCESSFULLY. AND WHEN TRIED TO TRACE
> THE PROGRAM EVEN 'gdb' ALSO CORE DUMPED WHILE USING COMMANDS 'bt', 'where' :
>  
> ********---------------------------Begin---------------------------------------
>  
> student4%> g++ -o testrun -g t.cpp
> student4%> testrun
> Segmentation Fault (core dumped)
> student4%> gdb testrun core
> GNU gdb 4.18
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "sparc-sun-solaris2.7"...
> Core was generated by `testrun'.
> Program terminated with signal 11, Segmentation Fault.
> Reading symbols from /usr/local/lib/libstdc++.so.3...done.
> Reading symbols from /usr/lib/libm.so.1...done.
> Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
> Reading symbols from /usr/lib/libc.so.1...done.
> Reading symbols from /usr/lib/libdl.so.1...done.
> #0  0x72ea20 in ?? ()
> (gdb) bt
> #0  0x72ea20 in ?? ()
> Segmentation Fault (core dumped)
>  
> ********-----------------------------End---------------------------------------
>  
> I COULD NOT UNDERSTAND WHAT IS THE PROBLEM AND HOW & WHERE TO START WITH TO
> SOLVE IT. PLEASE SUGGEST ME IN THIS REGARD.
>  
> tHaNkS IN ADVANCE !!
>  
> regards,
> Krishna



_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to