badri@calvin.scs.com (Badri Lokanathan) (01/09/90)
I want to write some code that prints out the call stack on demand (eg during a segmentation fault.) The goal is to achieve something similar to the "trace" command on a sun (which is limited to system calls only,) except that I require user-defined functions as well. Is it possible to use ptrace to do this? Could someone mail me a snippet of code to show me how? Thanks. -- ,------------------------. "O! the beautiful bombs falling! | Badri Lokanathan | Children leap as deer to catch them. | sdl!badri@uunet.uu.net | Mothers burst open like flowers. `------------------------' Fathers spin away into orange air." -Dick Bakken