Re: debugging C functions - Mailing list pgsql-general

From Islam Hegazy
Subject Re: debugging C functions
Date
Msg-id 05df01c7a6d9$445f2a70$0d0e9f88@pc.cpsc.ucalgary.ca
Whole thread Raw
In response to debugging C functions  ("Islam Hegazy" <islheg@gawab.com>)
List pgsql-general
Yes, I am sure. If I placed a breakpoint in any file, e.g. execMain.c, the
debugger would enter this file.

Islam Hegazy


----- Original Message -----
From: "Gregory Stark" <stark@enterprisedb.com>
To: "Islam Hegazy" <islheg@gawab.com>
Cc: "Tom Lane" <tgl@sss.pgh.pa.us>; "Joe Conway" <mail@joeconway.com>;
<pgsql-general@postgresql.org>
Sent: Monday, June 04, 2007 5:50 AM
Subject: Re: [GENERAL] debugging C functions


> "Islam Hegazy" <islheg@gawab.com> writes:
>
>> I do the same but I use the ddd debugger
>> 1) Load the shared library from the SQL
>> 2) Open the .c file of my function
>> 3) Place the break points
>> 4) Execute the sql statement 'Select * from Myfn(...);'
>>
>> The result is displayed and the debugger doesn't stop at the breakpoints.
>
> Are you sure you're attaching to the right process?
>
> One way to do it is to run select pg_backend_pid() from psql and attach to
> that pid.
>
> --
>  Gregory Stark
>  EnterpriseDB          http://www.enterprisedb.com
>


pgsql-general by date:

Previous
From: "Gary Chambers"
Date:
Subject: Re: [SQL] Encrypted column
Next
From: Ranieri Mazili
Date:
Subject: Inserting a path into Database