Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: "Hans Horn" <hannes@2horns.com>
Newsgroups: gmane.os.cygwin
Subject: Re: stacktrace from withn an exec upon error condition
Date: Thu, 28 Mar 2002 19:40:03 -0800
Lines: 37
Message-ID: <a80nml$i6j$1@main.gmane.org>
References: <a807fm$5fd$1@main.gmane.org> <a7v9eh$1ph$1@main.gmane.org> <20020328153930.GF11781@redhat.com> <a7vgnr$b9q$1@main.gmane.org> <20020328221751.GK16757@redhat.com> <a807fm$5fd$1@main.gmane.org> <5.1.0.14.2.20020328161017.0274f2c8@pop3.cris.com> <20020329010609.GB19845@redhat.com>
NNTP-Posting-Host: dsl-64-130-141-77.telocity.com
X-Trace: main.gmane.org 1017373206 18643 64.130.141.77 (29 Mar 2002 03:40:06 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Fri, 29 Mar 2002 03:40:06 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Dear all,

I just tried Chris' little test and got: something like this:
Stack trace:
Frame     Function  Args
0022FE84  00401073  (00401244, 00000000, 0022FEA4, 00401063)
0022FE94  00401073  (610A0368, 00000001, 0022FEB4, 00401054)
0022FEA4  00401063  (000000D0, 00000000, 0022FF10, 61003F42)
0022FEB4  00401054  (00000001, 61564ED8, 0A010278, 00000000)
0022FF10  61003F42  (00000000, 00000000, 00001000, 00000001)
0022FF40  61004236  (00401044, 00001000, F7A11220, 00000000)
0022FF60  61004275  (00000000, 00000000, F7A113B0, 00000005)
0022FF90  004010C3  (00401044, FFFFFFFF, 80430D77, 00000000)
0022FFC0  0040103D  (00001000, 0022E7F8, 7FFDF000, 610A5C2C)
0022FFF0  77E8D326  (00401000, 00000000, 000000C8, 00000100)
End of stack trace


This however, is of little help (at least not  to me).

What I had in mind, though, was to get a list of the function names
(demangled of course) that were in the calling chain to where the error
occured. In human readable form to be useful.
Sorry if I hadn't made clear enough what I was looking for!

I do get this nice feature on AIX and, of course, par excellance with Java.

Does anybody have any experience with Win32 API's StackWalk() as Larry had
suggeted in an earlier response to my original posting? Perhaps with some
examples?

cheers,
Hans







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

