[fpc-devel] Debugging FPC

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Apr 5 12:34:00 CEST 2008


On 05 Apr 2008, at 11:41, Никита Баль wrote:
>> How are you trying to debug it? With gdb, lazarus, fp, ...? And what
>> are the exact steps you are following?
>>
> I compile fpc under Lazarus(+gdb) with following keys:
> -di386 -Fu../rtl/units/i386-win32 -FE. -FUi386/units/i386-win32 - 
> dGDB -dBROWSERLOG
> _________________
>
> ("pp.pas")
> ...
> begin
>  oldexit:=exitproc;
>  exitproc:=@myexit;
>
> {$ifdef extheaptrc}
>  keepreleased:=true;
> {$endif extheaptrc}
>
>  Halt(compiler.Compile(''));        <- on this line i get exception.
>                                        and i can't step into  
> compiler.Compile('')


With which version of gdb? Which version of FPC did you compile, and  
with which version of FPC did you compile it? And with which command  
line options (the ones you show above don't include any debug  
generation information, so there must be more)?


Jonas


More information about the fpc-devel mailing list