On Thu, 2 Dec 2010, Mark Morgan Lloyd wrote:

[email protected] wrote:

Would it be possible to write a server-side PostgreSQL extension using
Lazarus, including friendly debugging?

Yes, feel free to do that :)

[GRIN] Actually, it was a serious question: can Lazarus debug a .so and
would it stand any chance of debugging one which had the sort of
calling convention that Postgres expects an extension to have?

Really don't know, have to study docs for such scenario.

Speculating that Lazarus can, in fact, debug a .so and allowing that the extension would be invoked by a forked PostgreSQL process, I think the question boils down to whether Lazarus can attach to a process that it has not started up.

GDB has a command for it (attach) , so it should be possible.

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to