[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wed, 12 Apr 2006 18:01:38 +1000
Problem is... what do I do with a Frame?
NSFrameAddress() return a void*.
I don't kown what to do with it!
Is there a way to get method name from this void*?
Anyway I will also look at your code, thanks for it!
NovaMind development team
Mind Mapping Software
----- Original Message -----
From: "Chris Vetter" <address@hidden>
To: "Lloyd Dupont" <address@hidden>
Cc: "GNUstep Discussion" <address@hidden>
Sent: Wednesday, April 12, 2006 5:51 PM
Subject: Re: NSFrameAddress
On 2006-04-12 03:55:56 +0200 Lloyd Dupont <address@hidden> wrote:
I jsut discovered NSFrameAddress in NSDebug.h
Looks very promizing in my case. But I have no idea how to use it...
You need to know how stack frames look like on your machine.
You can use NSFrameAddress to 'define' a 'starting point' then walk
through the stack forward/backward. Since ideally the stack will keep
the information of methods and functions it's relatively simple to
dump a stack backtrace. At least, that's how I use NSFrameAddress()