delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-Id: | <4.3.1.2.20020328100149.024a43d8@pop.ma.ultranet.com> |
X-Sender: | lhall AT pop DOT ma DOT ultranet DOT com |
Date: | Thu, 28 Mar 2002 10:03:41 -0500 |
To: | "Hans Horn" <hannes AT 2horns DOT com>, cygwin AT cygwin DOT com |
From: | "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com> |
Subject: | Re: stacktrace from withn an exec upon error condition |
In-Reply-To: | <a7v9eh$1ph$1@main.gmane.org> |
Mime-Version: | 1.0 |
At 09:30 AM 3/28/2002, Hans Horn wrote: >Dear all, > >is there a way to create (and print) a procedure traceback from within an >executable that is invoked upon error condition? >This is possible on many other platforms. >I've read about strace, but that seems to be not what I want, as to my >understanding the executable needs to be run under strace. Look at the Win32 API. There are some APIs that allow you to get a stack trace and walk it. Not sure if it will work with Cygwin/gcc but you might want to investigate it. Sorry, I forget the details of the functionality (or even the names of the calls!) It's been a while. But you should be able to find it at the MSDN site. Good luck, Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |