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

From Bruce Momjian
Subject Re: [HACKERS] How do I get the backend server into gdb?
Date
Msg-id 199904282155.RAA16756@candle.pha.pa.us
Whole thread Raw
In response to RE: [HACKERS] How do I get the backend server into gdb?  (Michael J Davis <michael.j.davis@tvguide.com>)
List pgsql-hackers
See tcop/postgres.c.


> 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 PM
>     To:    pgsql-hackers@postgreSQL.org
>     Subject:    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 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
> 
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] How do I get the backend server into gdb?
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Issues with the latest 6.5 source