Re: debugging C functions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: debugging C functions
Date: 2003-06-20 18:00:35
Message-ID: Pine.LNX.4.44.0306201955570.2297-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nigel J. Andrews 2003-06-20 18:15:02 Re: debugging C functions
Previous Message Alvaro Herrera 2003-06-20 17:49:16 Re: dropping sequences