discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFrameAddress


From: Lloyd Dupont
Subject: Re: NSFrameAddress
Date: 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!

Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
----- Original Message ----- From: "Chris Vetter" <chris.vetter@gmail.com>
To: "Lloyd Dupont" <lloyd@nova-mind.com>
Cc: "GNUstep Discussion" <discuss-gnustep@gnu.org>
Sent: Wednesday, April 12, 2006 5:51 PM
Subject: Re: NSFrameAddress


On 2006-04-12 03:55:56 +0200 Lloyd Dupont <lloyd@nova-mind.com> wrote:
I jsut discovered NSFrameAddress in NSDebug.h
Looks very promizing in my case. But I have no idea how to use it... Any tips?

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() for ;-)

--
Chris






reply via email to

[Prev in Thread] Current Thread [Next in Thread]