From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6bf7295b4af171a3 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-02-17 11:58:24 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: Bevin R Brett Newsgroups: comp.unix.tru64 Subject: Re: Stack Trace Date: Sat, 17 Feb 2001 14:58:35 -0500 Message-ID: <3A8ED7EA.42D25AA0@compaq.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: UmFuZG9tSVat+ySF6QxEhB7ZrYt5pHABBAffKEr9/Fo7+zB6zlv8C3MgXG3Eo5Rx X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 17 Feb 2001 19:57:28 GMT X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en Xref: supernews.google.com comp.unix.tru64:1722 Yes, there is two simple ways to do this. The easiest way gives just a function-level stack trace, and the code you need to add is documented here ftp://ftp.compaq.com/pub/products/software/developer/ladebug_debugger_manual.html#at.start.stack in section 14.2 Modifying Your Program to Print a Stack Trace Chapter 15, of the same manual, describes how you can actually start the ladebug debugger from your code, in which case you can feed it a 'where' command and have it do a full symbolic stack trace including lines and files etc. /Bevin Compaq Ladebug team Big H wrote: > Hi, > > I have an application that is fairly large (memory wise) and takes > upto 10 minutes to generate the core file. However, if this service > fails, I need to failover to a different machine. This can only be > detected when the process finally dies (after writing of the core). > > Is there a mechanism to generate just the stack trace from a C++ > program, this could then be called by the exception handler. > > Big H.