• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDebug.h and frame pointers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Hiding a view
  • Next by Date: Re: Hiding a view
  • Previous by thread: Re: Subclassing NSTableView
  • Next by thread: keyDown how to pass on events?
  • Index(es):
    • Date
    • Thread