Reading a Function's Return Address

Marc San Soucie servio!marcs at uunet.uu.net
Fri Jul 20 03:03:35 AEST 1990


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 at slc.com



More information about the Comp.sys.sun mailing list