[fpc-pascal] console gdb in mac

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sun Sep 7 17:19:44 CEST 2014


I'm trying to debug lcl-cocoa, but the debugger in the IDE is not
helping (not stopping in breakpoints inside the LCL, can't read
variable names, etc...)

So I moved to the console gdb, and I can already break, step over, etc.

But, how to read variable names? I guess a wierd mangling will be
involved here =)

In particular, let's say I am here:

procedure TControl.SetParent(NewParent: TWinControl);
  if FParent = NewParent then exit; <<--- here

How can I read the value of field FParent which is located in object "Self" ?

Felipe Monteiro de Carvalho

More information about the fpc-pascal mailing list