There are some peculiarities of Free Pascal which you should be aware of when using gdb. We list the main ones here:
As an example, of you want to watch the value of a loop variable count, you should type
watch COUNT |
break MYFUNCTION |
You can also use the following user function to print strings:
define pst set $pos=&$arg0 set $strlen = {byte}$pos print {char}&$arg0.st@($strlen+1) end document pst Print out a Pascal string end |
For example, the method TPoint.Draw would be converted to TPOINT__DRAW, and could be stopped at with
break TPOINT__DRAW |