Re: gdb with postgres - Mailing list pgsql-hackers

From Robert Haas
Subject Re: gdb with postgres
Date
Msg-id BANLkTinuZf_dyUue+G2XwJ9yZY1cerxasw@mail.gmail.com
Whole thread Raw
In response to Re: gdb with postgres  (HuangQi <huangqiyx@gmail.com>)
List pgsql-hackers
On Mon, Jun 6, 2011 at 9:47 AM, HuangQi <huangqiyx@gmail.com> wrote:
> If I enter c, gdb will directly finish executing this process and current
> query will finish. Furthermore, if I enter next query, gdb will not debug it
> and stay in continue status.

Hmm, that must mean your breakpoint isn't properly set.

Instead of doing gdb postgres and then using attach, try just doing
gdb -p PIDNAME, then set your breakpoint, then continue.  That's how
I've always done it, anyway...

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: HuangQi
Date:
Subject: Re: gdb with postgres
Next
From: "Kevin Grittner"
Date:
Subject: Re: gdb with postgres