[fpc-pascal] Debugger interaction in FP IDE and Lazarus

Martin Schreiber fpmse at bluewin.ch
Wed Sep 3 07:33:19 CEST 2008

On Wednesday 03 September 2008 04.42:49 leledumbo wrote:
> FP IDE needs to link to libgdb and all of its dependencies in order to have
> debugger support. OTOH, Lazarus interacts to gdb via TProcess. FP IDE
> approach would be faster but also inextensible and less maintainable. When
> there's a problem with the libgdb (i.e. the library is buggy), the whole
> IDE needs to be recompiled using the bug-free library. In Lazarus case,
> changing the program path to the bug-free one is enough. What if FP IDE
> uses the same approach as Lazarus? Any cons you can think of other than
> speed?

The gdb mi-interface is not finished. Many commands fail with "Missing 
implementation" and must be replaced by regular command line calls with the 
problematic parsing of the result which format tends to change from version 
to version. It is difficult to separate the output stream of gdb and the 
debuggee, sometimes it is even impossible. Implementing a pipe based gdb 
interface is a nightmare...


More information about the fpc-pascal mailing list