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

From Michael J Davis
Subject RE: [HACKERS] How do I get the backend server into gdb?
Date
Msg-id 93C04F1F5173D211A27900105AA8FCFC145442@lambic.prevuenet.com
Whole thread Raw
Responses RE: [HACKERS] How do I get the backend server into gdb?  (Vince Vielhaber <vev@michvhf.com>)
Re: [HACKERS] How do I get the backend server into gdb?  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
I tired but it breaks in the Postmaster and not in the backend process that
is created for each process.
-----Original Message-----From:    Theo Kramer [SMTP:theo@flame.co.za]Sent:    Wednesday, April 28, 1999 2:08 PMTo:
pgsql-hackers@postgreSQL.orgSubject:   Re: [HACKERS]  How do I get the backend server into
 
gdb?
Bruce Momjian wrote:> > There is some option that starts backends, and then sleeps > waiting for a> gdb connection, or
somethinglike 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 atthe breakpoint set.
You may need to do this a couple of times until youhave found the right area in the code.--------RegardsTheo


pgsql-hackers by date:

Previous
From: Theo Kramer
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?