Debugging postgresql source on gdb - Mailing list pgsql-general

From Shreya Bhargava
Subject Debugging postgresql source on gdb
Date
Msg-id 64968.60515.qm@web53402.mail.re2.yahoo.com
Whole thread Raw
List 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.

pgsql-general by date:

Previous
From: "Sibte Abbas"
Date:
Subject: Re: [HACKERS] 8.2.4 signal 11 with large transaction
Next
From: "Andrus"
Date:
Subject: Re: invalid memory alloc request size 2147483648 using toode LIKE 'ä%'