• 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: trying to enable NSZombie, gdb can't find OSO file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trying to enable NSZombie, gdb can't find OSO file


  • Subject: Re: trying to enable NSZombie, gdb can't find OSO file
  • From: Bill Bumgarner <email@hidden>
  • Date: Sat, 13 Jun 2009 13:59:59 -0700

On Jun 13, 2009, at 1:51 PM, Martin Wierschin wrote:
Thanks for your reply.

You can't set NSZombieEnabled after a program has started running. You need to set it as an environment variable and restart your app.

Actually you can, or at least I have, in many other projects to good effect. I always figured as long as the deallocated object was created after I set the runtime variable, a zombie would be swapped in as needed. Was it just luck?

Well, waddya know! You can. Thanks for the correction.

Actually, all of the tools have improved so much, I do all of my dev work in Snow Leopard, booting back to Leopard for final testing / QA prior to release (for the very tiny handful of things I still do on Leopard, anyway :).

No doubt! I still regularly work on and target Tiger, so I realize my workflow is archaic :P


In any case, it seems like there's something really weird going on with this one project. I can't seem to touch any Cocoa from gdb, though other calls are fine:

	(gdb) po [NSArray array]
	Could not find OSO file: ""
	(gdb) p/x (void*)CFDictionaryCreateMutable(0, 99, 0, 0)
	$1 = 0x185ea00
	(gdb) p/x (void*)malloc(99)
	$1 = 0x323bb0

My target is configured to link with the Cocoa framework. Perhaps I should take this to the XCode list, though if anyone has any suggestions I'd be happy to hear them :)

Are you trying to do remote debugging?

http://lists.apple.com/archives/xcode-users/2006/Apr/msg00304.html

b.bum
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: trying to enable NSZombie, gdb can't find OSO file
      • From: Martin Wierschin <email@hidden>
References: 
 >trying to enable NSZombie, gdb can't find OSO file (From: Martin Wierschin <email@hidden>)
 >Re: trying to enable NSZombie, gdb can't find OSO file (From: Bill Bumgarner <email@hidden>)
 >Re: trying to enable NSZombie, gdb can't find OSO file (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: trying to enable NSZombie, gdb can't find OSO file
  • Next by Date: Re: trying to enable NSZombie, gdb can't find OSO file
  • Previous by thread: Re: trying to enable NSZombie, gdb can't find OSO file
  • Next by thread: Re: trying to enable NSZombie, gdb can't find OSO file
  • Index(es):
    • Date
    • Thread