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

From: Theo Kramer <theo(at)flame(dot)co(dot)za>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] How do I get the backend server into gdb?
Date: 1999-04-28 20:07:49
Message-ID: 37276A95.4EAE7C0@flame.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael J Davis 1999-04-28 20:34:34 RE: [HACKERS] How do I get the backend server into gdb?
Previous Message Bruce Momjian 1999-04-28 19:53:34 Re: [HACKERS] How do I get the backend server into gdb?