• 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: Opaque types are nice concepts but how do you debug that?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opaque types are nice concepts but how do you debug that?


  • Subject: Re: Opaque types are nice concepts but how do you debug that?
  • From: "Yves Poissant" <email@hidden>
  • Date: Fri, 2 Sep 2005 08:23:22 -0400
  • Organization: Hash Enterprises Inc.

Theoretically you can type:

print (int)CFShow( myDictionary )

into the debugger console. Unfortunately, for me this always results
in a message saying that the program was signalled in a function
called by GDB followed by debugging mayhem, but I know it works for
most people.

For me, it prints "out of scope".

The CFDictionary is in a list so if I enter "dn->m_dict" alone, the expression window prints "6 entries". But if I enter "print (int)CFShow(dn->m_dict)" or "call (void)CFShow(dn->m_dict)" or simply "CFShow(dn->m_dict)", I get an "out of scope". Why? The pointer dn is local to the function.

Also, technote TN2124 can't be publicized too much, so here's a free
plug:

http://developer.apple.com/technotes/tn2004/tn2124.html

Got to read that document. Thanks.

Yves Poissant

_______________________________________________
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


References: 
 >Opaque types are nice concepts but how do you debug that? (From: "Yves Poissant" <email@hidden>)
 >Re: Opaque types are nice concepts but how do you debug that? (From: Jerry <email@hidden>)

  • Prev by Date: Re: Merging strings?
  • Next by Date: Re: Merging strings?
  • Previous by thread: Build configurations and static libraries
  • Next by thread: Re: Opaque types are nice concepts but how do you debug that?
  • Index(es):
    • Date
    • Thread