Search Postgresql Archives

Re: debugging C functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
To: "Islam Hegazy" <islheg@xxxxxxxxx>
Cc: "Tom Lane" <tgl@xxxxxxxxxxxxx>; "Joe Conway" <mail@xxxxxxxxxxxxx>; <pgsql-general@xxxxxxxxxxxxxx>
Sent: Monday, June 04, 2007 5:50 AM
Subject: Re: [GENERAL] debugging C functions


"Islam Hegazy" <islheg@xxxxxxxxx> 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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux