backtrace(3) in Cygwin?
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Mar 11 17:44:00 GMT 2015
On Mar 11 17:10, 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, but
> presumably Cygwin is capable of generating a backtrace because the 'bt'
> command works in gdb.
GDB's `bt' implementation has nothing to do with Cygwin's capability
to walk a stack. Cygwin only has limited capabilities there which
are used to create the stackdump file, see the stack_walk class in
exceptions.cc:
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob_plain;f=winsup/cygwin/exceptions.cc
If you want to create a backtrace(3) function set for Cygwin, feel
free: https://cygwin.com/contrib.html
I'm certainly not averse to patches...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150311/d34e25fd/attachment.sig>
More information about the Cygwin
mailing list