[fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Tobias Giesen
Hello, I am back developing for Mac! My compiled application with symbold is 93.5 MB in size and gdb cannot load it, so the debugger in Lazarus fails too. This happens on both Leopard and Snow with FPC 2.2.x and 2.4.0 and Lazarus 0.9.28 and 0.9.29. Only the 2 year old installation on Tiger

Re: [fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Jonas Maebe
On 10 Jul 2010, at 13:21, Tobias Giesen wrote: My compiled application with symbold is 93.5 MB in size and gdb cannot load it, so the debugger in Lazarus fails too. Stabs or DWARF (-g or -gw)? I've seen this in the past with DWARF and Lazarus-compiled applications, but never with Stabs.

Re: [fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Tobias Giesen
With FPC 2.4.0 I get Fatal: Compilation aborted: Unhandled exception at ... on line 1 of some units. Does it still happen after cleaning the project and then rebuilding it? I manually deleted all .ppu, .o, and .rst files and it happens on a fresh build. By the way could -Cs2000 do

Re: [fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Jonas Maebe
On 10 Jul 2010, at 20:23, Tobias Giesen wrote: I manually deleted all .ppu, .o, and .rst files and it happens on a fresh build. Then please file a bug report with source code to reproduce the crash. By the way could -Cs2000 do any harm? Maybe one 0 too many? The stack size only affects

Re: [fpc-pascal] Mac OS X gdb: Segmentation Fault loading my project

2010-07-10 Thread Tobias Giesen
Then please file a bug report with source code to reproduce the crash. I'd love to but probably it only happens in my project with close to 500 units, it can be really hard to strip such things down. There is unfortunately a lot of closed source code in it. I will try installing FPC 2.5.