GDB 4.16 dumps core with egcs-1.0
Jeffrey A Law
law@cygnus.com
Tue Jan 13 16:52:00 GMT 1998
In message <Pine.LNX.3.96.980113224611.14365B-100000@goliath.csn.tu-chemnitz.
de>you write:
> > Note that some of the code egcs installs into the init sections calls
> > malloc behind gdb's back, which can cause this behavior.
> >
> > egcs-1.0.1 will have a newer version of this code which will not call
> > malloc and should avoid these kinds of problems with gdb.
>
> Now I use pgcc-1.0.1 (based on egcs-1.0.1) and the bug still occurs. I
> don't think that pgcc changes the init-code.
Hmmm, I can't speak for pgcc, but egcs-1.0.1 did remove the code which calls
malloc before main. Primarily to fix this problem with gdb.
Note that if you have a shared library which was compiled with egcs-1.0
that is used by gdb, then you'll still trip over this problem until the
shared library is rebuilt with egcs-1.0.1.
jeff
More information about the Gcc-bugs
mailing list