• 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
Re: Watching an opaque struct member?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Watching an opaque struct member?


  • Subject: Re: Watching an opaque struct member?
  • From: Christopher Friesen <email@hidden>
  • Date: Sun, 4 Nov 2007 23:29:55 -0800

How about dumping the memory around the NSCalendar object, set the first weekday to a new value, dump the object again and look for the value you set. Then figure out the address for that memory location and use that for the watchpoint.

-Christopher Friesen

On Nov 2, 2007, at 7:26 PM, Nick Zitzmann wrote:

Short question: How do I set a watchpoint on an opaque member of a data structure?

Long question: I'm having a bizarre problem with CF/NSCalendar where one of the instance variables, in this case the first weekday instance variable, is being set behind the application's back _without_ the use of the usual accessor function/method. (I broke on the function in the debugger and checked each variable passed in; under no circumstance was my app or anything else changing the variable. It really is being changed behind my back.) I want to catch the perp that's doing this, but how do I do this when CFCalendar is an opaque data structure, and furthermore, the source code for Leopard CoreFoundation has not yet been released?

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Watching an opaque struct member?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Watching an opaque struct member? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Single Stepping Debugger Doesn't Work
  • Next by Date: Re: Xcode 3: Keyboard shortcut for "Continue"
  • Previous by thread: Watching an opaque struct member?
  • Next by thread: Re: Watching an opaque struct member?
  • Index(es):
    • Date
    • Thread