On 03 Feb 2009, at 23:33, Ken G. Brown wrote:

Have a Pascal program calling some C code from a static library I
build in a separate project so I can use the debugger.

You can also build it in a separate target of the same project and
then change the target-specific flags for that C library (as in the
"FPC-C-C++ Carbon Application 2.2.0" template).

Does this method still allow running gdb on the C code?

Yes. When you have separate targets, you can set separate options for the different targets (so you can turn on gcc debugging info for the library target and disable it for the FPC target).


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to