delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/11/13:45:14

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
q=dns; s=default; b=iFlzQ4FTAwxifPNh1ee+3VW0hi396D9nXtHODva1WLk
qxJz+JyswIIl3mvymoRh1KjR3fhGVRAcrC1ecpA1QOZzWPkFj4q9FPjOGzWP+2tA
bwI2HlkYe2QyBXM3zYHluB1o6aI2NHBXvOW5lgQec6R0GIg+qgCmHYyVpim68KTc
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
s=default; bh=2kV9JSSmXOokXvIdqEQ8GvwiNeE=; b=DidRqTmAndI2EU08T
pmlhMNnp752sgzYi2x4oEH7SYCoPUjjylUJH/iBkMOrAiVJvuU0sIP7fmrNc9y2J
GrcOcedmS5fdsZ3rCIP0Q2W3mwde4lwV8Xb5b9HLAGnlsuyVyEt5y5FGD3wi9XLw
k16JDCMjJctyq9V3/wFWDfR+YI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <1426095902.11504.10.camel@cygwin.com>
Subject: 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
In-Reply-To: <550076EC.40808@tiscali.co.uk>
References: <550076EC DOT 40808 AT tiscali DOT co DOT uk>
Mime-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019