Debugging postgresql source on gdb

From: Shreya Bhargava <shreya_bhargav(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Debugging postgresql source on gdb
Date: 2007-07-22 04:33:23
Message-ID: 64968.60515.qm@web53402.mail.re2.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am trying to debug postgres source code using gdb. I set a breakpoint on a function, but it never stops when it reaches that function. Here are the steps:

1. gdb postgres
2. set args -D test (test is my dbcluster)
3. b hashbuild(this is the function i want to break on)
4. run
5. start a client using ./psql test
6. command to create hash index, which calls the above function.

at this point, i see that the function is being executed because i see my printf statements, but breakpoint never gets triggered.

please advice.

regards,
Shreya


---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-07-22 05:00:23 Re: Debugging postgresql source on gdb
Previous Message Sibte Abbas 2007-07-22 04:05:29 Re: 8.2.4 signal 11 with large transaction