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

From: Michael J Davis <michael(dot)j(dot)davis(at)tvguide(dot)com>
To: "'Theo Kramer'" <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 20:34:34
Message-ID: 93C04F1F5173D211A27900105AA8FCFC145442@lambic.prevuenet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael J Davis 1999-04-28 20:46:57 RE: [HACKERS] How do I get the backend server into gdb?
Previous Message Theo Kramer 1999-04-28 20:07:49 Re: [HACKERS] How do I get the backend server into gdb?