This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: backtrace(3) in Cygwin?
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 11 Mar 2015 12:45:02 -0500
- Subject: Re: backtrace(3) in Cygwin?
- Authentication-results: sourceware.org; auth=none
- References: <550076EC dot 40808 at tiscali dot co dot uk>
On Wed, 2015-03-11 at 17:10 +0000, David Stacey wrote:
> Please could you tell me if Cygwin supports backtrace(3) and
> backtrace_symbols(3) [1]? I can't find the execinfo.h header file
It does not. However, if anyone has cycles to implement it, that would
be nice. You may wish to see how WebKit fakes backtrace(3) on Windows
by using RtlCaptureStackBackTrace:
https://trac.webkit.org/browser/trunk/Source/WTF/wtf/Assertions.cpp#L226
https://msdn.microsoft.com/en-us/library/windows/hardware/ff552119.aspx
> presumably Cygwin is capable of generating a backtrace because the 'bt'
> command works in gdb.
No, gdb has it's own implementation to meet its own needs.
--
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple