mac osx gdb [Re: [fpc-devel] Dwarf3 and the encoding of classes ]

Martin fpc at
Wed Jan 12 13:51:36 CET 2011

On 12/01/2011 12:30, Helmut Hartl wrote:
> Am 12.01.11 11:39, schrieb Joost van der Sluis:
>> That is bad news, because it seems like it that the
>> final-case-sensitivity solution will be that the case-sensitive flag is
>> used to control the behavior. But that will then break backwards
>> compatibility...
> I have osx, freebsd, linux and windows as targets.
> Currently debugging with lazarus under osx is a horrible experience :-).
> ( 
> and more)

You can search "macports gdb" for a gdb 7.1 for osx.

BUT afaik it doesn't start app-bundles, you need to start the exe inside 
the bundle directly => which may cause other issues...

Also the same may be true for the gdb discussed in these mails => afaik 
only the special gdb by apple does the bundle support => and that still 
is 6.3-50

Also the gdb of these mails, is about improved displaying of certain 
data types.

- objects, if gdb is used outside the IDE => in the IDE it's already done
- strings with index: SomeStringFoo[1] is the first (1-based index) 
char, but gdb thinks it is the 2nd.
- some other data types...
For your issues probably start a new mail thread (and on the lazarus list)
=> it it is about the way watches display data, then describe what you 
get, and what you expect.. => though in this case not all will be fixed 
in the IDE, and some may be better with this new gdb.

=> if it is, about the gdb hangs, or crashes.... then there will be a 
need for plenty of logs, etc.


More information about the fpc-devel mailing list