NSDebug.h and frame pointers
NSDebug.h and frame pointers
- Subject: NSDebug.h and frame pointers
- From: Gérard Iglesias <email@hidden>
- Date: Thu, 25 Oct 2001 16:27:36 +0200
Hi,
What did happen to some function of NSDebug.h, for example, they make my
app crashing, what are the replacements?
/**************** Stack processing ****************/
FOUNDATION_EXPORT void *NSFrameAddress(unsigned frame);
FOUNDATION_EXPORT void *NSReturnAddress(unsigned frame);
// Returns the value of the frame pointer or return address,
// respectively, of the specified frame. Frames are numbered
// sequentially, with the "current" frame being zero, the
// previous frame being 1, etc. The current frame is the
// frame in which either of these functions is called. For
// example, NSReturnAddress(0) returns an address near where
// this function was called, NSReturnAddress(1) returns the
// address to which control will return when current frame
// exits, etc. If the requested frame does not exist, then
// NULL is returned. The behavior of these functions is
// undefined in the presence of code which has been compiled
// without frame pointers.
FOUNDATION_EXPORT unsigned NSCountFrames(void);
// Returns the number of call frames on the stack. The behavior
// of this functions is undefined in the presence of code which
// has been compiled without frame pointers.
Regards
Girard