Path: utzoo!attcan!uunet!snorkelwacker!usc!cs.utexas.edu!rice!sun-spots-request From: servio!marcs@uunet.uu.net (Marc San Soucie) Newsgroups: comp.sys.sun Subject: Reading a Function's Return Address Keywords: Miscellaneous Message-ID: <10099@brazos.Rice.edu> Date: 19 Jul 90 17:03:35 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 12 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 268, message 18 Originator: spots@titan.rice.edu Has anyone attempted and succeeded in coding a 'C' fragment which can be used on a SPARC to determine a function's caller's return address from within the function? I am trying to generate some tracking software, which would like to show who has called a function. The old trick of walking backwards on the stack is none too effective for this. E-mail would be nice, but I'll watch this group. Marc San Soucie Servio Corporation Beaverton, Oregon marcs@slc.com