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

Поиск
Список
Период
Сортировка
От Theo Kramer
Тема Re: [HACKERS] How do I get the backend server into gdb?
Дата
Msg-id 37276A95.4EAE7C0@flame.co.za
обсуждение исходный текст
Ответ на Re: [HACKERS] How do I get the backend server into gdb?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список 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


В списке pgsql-hackers по дате отправления: