Re: Stack trace

Поиск
Список
Период
Сортировка
От Emmanuel Cecchet
Тема Re: Stack trace
Дата
Msg-id 490FCEE1.9050401@frogthinker.org
обсуждение исходный текст
Ответ на Stack trace  ("Bramandia Ramadhana" <bramandia@gmail.com>)
Ответы Re: Stack trace  ("Bramandia Ramadhana" <bramandia@gmail.com>)
Список pgsql-hackers
Bramandia Ramadhana wrote:
> Is there any way to print out the stack trace of the current location?
Not sure if Postgres has something in the utils for that.
You can use backtrace() in glibc. Solaris 9 libc has printstack(). Not 
sure what's available for Windows.
> I am looking for something like print_stack_trace(); that I can insert 
> in arbitrary location in the code.
Some references:
http://www.tlug.org.za/wiki/index.php/Obtaining_a_stack_trace_in_C_upon_SIGSEGV
http://www.delorie.com/gnu/docs/glibc/libc_665.html

manu

-- 
Emmanuel Cecchet
FTO @ Frog Thinker 
Open Source Development & Consulting
--
Web: http://www.frogthinker.org
email: manu@frogthinker.org
Skype: emmanuel_cecchet



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

Предыдущее
От: "Bramandia Ramadhana"
Дата:
Сообщение: Stack trace
Следующее
От: "Brendan Jurd"
Дата:
Сообщение: Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle