Re: [HACKERS] How do I get the backend server into gdb? - Mailing list pgsql-hackers

From Theo Kramer
Subject Re: [HACKERS] How do I get the backend server into gdb?
Date
Msg-id 37276A95.4EAE7C0@flame.co.za
Whole thread Raw
In response to Re: [HACKERS] How do I get the backend server into gdb?  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> 
> There is some option that starts backends, and then sleeps 
> waiting for a
> gdb connection, or something like that.
> 

Why not just the following

gdb postmaster

Set one ore more breakpoints where you think the problem 
might be, then type 'run'.

Start the client and with a bit of luck gdb will break at
the breakpoint set.

You may need to do this a couple of times until you
have found the right area in the code.
--------
Regards
Theo


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] How do I get the backend server into gdb?
Next
From: Michael J Davis
Date:
Subject: RE: [HACKERS] How do I get the backend server into gdb?