[fpc-devel] gdb crashes with trunk
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Apr 5 14:33:16 CEST 2008
On 05 Apr 2008, at 13:32, Jonas Maebe wrote:
> This is caused by the fact that some restructuring of the debug info
> writer broke this fix:
>
> ------------------------------------------------------------------------
> r8565 | jonas | 2007-09-19 18:37:49 +0200 (Wed, 19 Sep 2007) | 5 lines
> Changed paths:
> M /trunk/compiler/dbgstabs.pas
> M /trunk/compiler/symconst.pas
> A /trunk/tests/webtbs/tw9766.pp
>
> * avoid writing the stabs for a child class before those of a parent
> class in case the parent class has a field with as type the
> (forward
> defined) child class, because this crashes gdb
> + (interactive) test for this
>
> ------------------------------------------------------------------------
>
> I'll try to fix it again.
Fixed. gdb 6.5 also works again. It starts a lot slower than 6.6, so I
guess 6.5 read all debug information on startup (which is why it
crashed immediately) while 6.6 and later only read the debug info as
needed (and hence only crashed when the type info it can't handle was
needed).
Jonas
More information about the fpc-devel
mailing list