Re: GDB error - exit with status 10
Re: GDB error - exit with status 10
- Subject: Re: GDB error - exit with status 10
- From: Jonas Maebe <email@hidden>
- Date: Wed, 13 Apr 2011 22:24:48 +0200
On 13 Apr 2011, at 16:08, Alexander Bokovikov wrote:
> Then I've tried to find a difference between the "old" and "new" project sources, and I've found the reason. I'm using a FPC static library in my XCode project. This library is built, as a target, then is linked with main ObjC code. The problem is in the FPC code.
>
> This code doesn't work:
>
> const
> MyTypedConst : string = 'Some string';
>
> This code works OK:
>
> const
> MyTypedConst : string[80] = 'Some string';
>
> I don't know where is the problem. Is it in the GDB or is it in the FreePascal compiler?
GDB crashing is definitely a GDB bug. However, it may be caused by FPC generating invalid debug information, which would also make it an FPC bug. I can't reproduce the problem with FPC 2.4.2 and the gdb from Xcode 3.2.5 though (neither with DWARF nor with Stabs debug info). In case you are using Stabs (-g), you could try switching to DWARF (-gw) and check whether that helps. And if you are not using FPC 2.4.2 yet, you may want to upgrade to that version.
Jonas _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden