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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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