This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc 3.1 and gdb 5.2?
- From: Doug Warmke <doug at ikos dot com>
- To: gcc at gnu dot org
- Date: Tue, 11 Jun 2002 22:06:24 -0700 (PDT)
- Subject: gcc 3.1 and gdb 5.2?
GCC Team,
We recently installed gcc 3.1 and have successfully built our tree.
When we try to debug using gdb 5.2, we get a core dump whenever
trying to set a breakpoint. This is occuring on both Solaris 7
and Solaris 8. Our code is C++ (not C). A sample transcript
is shown below.
Are there any known issues using this combination of GNU tools?
Do we have to enable any special configuration or compiler options?
The only thing I found on gcc.gnu.org was that gdb 5.1.1 or higher
is required for debugging gcc 3.1 compiled code.
Thanks and regards,
Doug Warmke
(408) 284-8554
> > > Sorry, but it is still seg-faulting when I try to set a breakpoint.
> > >
> > > jlo% /hq/scmtools/Test/SunOS5.8/bin/gdb shifter.mctsim
> > > GNU gdb 5.2
> > > Copyright 2002 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.8"...
> > > (gdb) b main
> > > Segmentation Fault
> > > jlo%