| От | Tom Lane |
|---|---|
| Тема | Re: Debugging extension with gdb? |
| Дата | |
| Msg-id | 12005.1384960398@sss.pgh.pa.us обсуждение |
| Ответ на | Debugging extension with gdb? (Paul Jones <pbj@cmicdo.com>) |
| Ответы |
Re: Debugging extension with gdb?
|
| Список | pgsql-general |
Paul Jones <pbj@cmicdo.com> writes:
> Can someone point me to information on how to debug a Postgres extension
> with gdb?
I've noticed that on some platforms, it works better to attach gdb to the
backend process before you load the extension, but on others, it works
better to attach afterwards. You might try the opposite procedure from
whatever you were doing. Other than that, it's mostly Just Worked for
me on any remotely modern platform. Be sure both the backend and the
extension are compiled with -g, of course.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера