"Guenther Sohler" <> wrote in message
news

...
> I have written a program, which is very compicated
> and so it happens quite often, that it has to exit itself,
> because its handling an invalid index of an array.
> (It never crashes, it always nicely exits).
> Nevertheless - in that case, It would be very nice
> if my program could display the function hierarchy,
> how my program reached that exit.
You either have to depend on some specific compiler feature that does this
(your compiler mileage will vary significantly) or you will have to
ensure this yourself.
A compiler-independent way to do it is to decorate each
function entry/exit with instrumentation that keeps track
of this information on your own private stack. You can
do this by hand, with a few macros and lot of editing.
Or, you can use a tool that could automatically place such
probes in all your source files. A white paper on inserting
probes using automated tools can be found on the web page,
http://www.semanticdesigns.com/Produ...age/index.html.
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc.
www.semdesigns.com
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---