This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: backtrace(3) in Cygwin?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]