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 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

Attachment: pgprhdL_vKrNw.pgp
Description: PGP signature


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