Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] How do I get the backend server into gdb?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: michael(dot)j(dot)davis(at)tvguide(dot)com (Michael J Davis)
Cc: theo(at)flame(dot)co(dot)za, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] How do I get the backend server into gdb?
Date: 1999-04-28 21:55:54
Message-ID: 199904282155.RAA16756@candle.pha.pa.us (view raw or flat)
Thread:
Lists: 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(at)flame(dot)co(dot)za]
> 	Sent:	Wednesday, April 28, 1999 2:08 PM
> 	To:	pgsql-hackers(at)postgreSQL(dot)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(at)candle(dot)pha(dot)pa(dot)us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 1999-04-28 22:29:18
Subject: Re: [HACKERS] Issues with the latest 6.5 source
Previous:From: Tom LaneDate: 1999-04-28 21:49:41
Subject: Re: [HACKERS] How do I get the backend server into gdb?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group