Re: debugging C functions - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: debugging C functions
Date
Msg-id Pine.LNX.4.44.0306201955570.2297-100000@peter.localdomain
Whole thread Raw
In response to debugging C functions  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Responses Re: debugging C functions  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
Nigel J. Andrews writes:

> Attaching the debugger to the backend process I can't set a break point on my
> function, it says 'Function "blah" not defined' and when it segments somewhere
> under SPI_execp called from my function the stack trace has all the postgres
> symbols but just a '??' at the place my function is obviously sitting.

Use the command LOAD to load the dynamic object into the server process,
then set the break point, then run the function.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: dropping sequences
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: debugging C functions