| От | Tom Lane |
|---|---|
| Тема | Re: debugging C functions |
| Дата | |
| Msg-id | 2002.1180929609@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: debugging C functions ("Islam Hegazy" <islheg@gawab.com>) |
| Список | pgsql-general |
"Islam Hegazy" <islheg@gawab.com> writes:
> Thanks for your replies, they were very helpful to me. Unfortuantely, I
> can't trace the C function. PostgreSQL returns the results directly and the
> debugger doesn't stop at the breakpoints in the C function.
Well, you need to deal with that last, because you will never get very
far if you can't debug your code.
My experience is that gdb needs help to recognize a shared library's
symbols. It works for me to LOAD the shared library (from SQL) before
attaching to the backend with gdb. If you can't do that, gdb's
"sharedlibrary" command might do it.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера