Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!lth.se!newsuser From: kenny@dit.lth.se (Kenny Ranerup) Newsgroups: comp.unix.questions Subject: How can a program find path to its binary file? Message-ID: <1991Apr29.120203.13498@lth.se> Date: 29 Apr 91 12:02:03 GMT Sender: newsuser@lth.se (LTH network news server) Reply-To: kenny@dit.lth.se (Kenny Ranerup) Organization: Lund Institute of Technology, Sweden Lines: 16 I've written a signal handler that writes out a stackdump if a program gets e.g. a SEGV signal. However, I want to write out the stackdump with symbolic procedure names if symbolic information is available in the binary file. The question is, how can my signal handler find the path to the binary file so that it can read in the symbol table? I'm running SunOS 4.1.1 on a Sun3 machine. Kenny +------------------------------------+----------------------------+ | Kenny Ranerup, | Phone: +46 46 104940 | | Dept. of Computer Engineering | Email: kenny@dit.lth.se | | Lund University | | | P.O. Box 118, S-221 00, Sweden | | +------------------------------------+----------------------------+