Skip navigation.
 
mlRe: Examining the Call Stack
FROM : Herr Witten
DATE : Thu Dec 23 17:36:02 2004

> Don't. Pass an extra parameter (id sender?) instead.


I did not want to do this, but it seems to be the easiest route. I will
probably go with this, since manually traversing the call stack does
not seem to be a normal thing. I don't even know how to do it.

> ..but it's a little easier than that sounds, because the good folks of
> cocoadev have already written the code.


Unfortunately, I cannot spend the time launching a subprocess. I had
hoped for a more direct solution. Nevertheless, thank you very much.

> you can always write a couple of tracing macro something like
> #define TRACE_FUNC(x) NSLog(@"0x%x->%s", self, x);
> then
> void myfunc(int a ....) {
>     TRACE_FUNC("myfunc")
>     .....
> }


Thank you very much for the reply, but I need a way to get the address
of an object earlier in the call stack.

Related mailsAuthorDate
mlExamining the Call Stack lingwitt Dec 22, 07:39
mlRe: Examining the Call Stack Andrew Farmer Dec 22, 08:16
mlRe: Examining the Call Stack Jérémie Banier Dec 22, 08:40
mlRe: Examining the Call Stack Ken Ferry Dec 22, 08:42
mlRe: Examining the Call Stack Herr Witten Dec 23, 17:36
mlRe: Examining the Call Stack Steven Kramer Dec 23, 20:47
mlRe: Examining the Call Stack Bob Ippolito Dec 24, 01:54