On 13 Aug 2010, at 11:14, Graeme Geldenhuys wrote:

Does anybody know if there is a way to support Conditional
Breakpoints in FPC + GDB with string types?

It can be solved without changing anything to either FPC or GDB, by basically writing extensions for GDB in Pascal. Create a unit with a bunch of cdecl helpers to deal with types that GDB does not know about, such as ansistrings (comparison, assignment, ...). Then in the Pascal IDE, a) when compiling a debug version, include this unit in the main program (if it gets standardised, we can include it with FPC and automatically add it when generating debug information) b) when one of those types is used in an expression, call the appropriate helper via GDB (you can include function calls in expressions).


Jnoas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to