[fpc-pascal] GDB Crash with FPC 2.2.1 (works with 2.2.0)

Jonas Maebe jonas.maebe at elis.ugent.be
Sat May 31 12:11:27 CEST 2008


On 31 May 2008, at 11:56, Tobias Giesen wrote:

> now that the Lazarus snapshots are including FPC 2.2.1 for OS X  
> (i386),
> I am using this version. I had to add the -Cg- option because my old
> assembly code is not compatible with PIC.
>
> Unfortunately the debugger crashes with the following crash report. Is
> there anything I can do to make it work? I am compiling a medium-sized
> application with LCL and the Carbon widgetset.

I don't think the crash has anything to do with PIC vs no PIC, as it  
happens during the symbol reading. I don't know what does cause it  
though, and I've never heard of or seen this before. Did you rebuild  
all of your units using the new compiler?

Also, you could try using dwarf (-gw) instead of stabs (-g) debug  
information, as stabs is deprecated by Apple on Mac OS X. The downside  
is that some things don't still completely work with dwarf (e.g.  
shortstrings are truncated at 8 characters).

Another thing you could try is using a different version of gdb (if  
you're using the one from Xcode 2.5, try the one from Xcode 3.0 and  
vice versa; or download the iPhone SDK beta and use the gdb included  
there).


Jonas



More information about the fpc-pascal mailing list