[comp.unix.wizards] Tracing Stack from C Program

charles@dragon.UUCP (Charles Wolff) (10/30/87)

In Article 4954 of comp.unix.wizards:
randy@ncifcrf.UUCP (The Computer Grue) asks:

> I have a question for the net: how would one go about writing a C
> function that would give you a stack trace of all calls to that
> function? 

There's a new (1986) book out called "Debugging C" by Robert Ward,
published by Que Corporation, Box 50507, Indianapolis, IN  46250.
Covers this topic plus a LOT of other useful tricks, caveats, etc.
Good chapter on using sdb as well.  Even a source listing for what
they call "a full featured debugging system".  

$20 paperback; a good reference on debugging techniques.


#include <disclaimer.h>