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?

Nope.

I still don't know what the problem is, but I found a workaround. If I set a breakpoint anywhere in the project to trigger gdb, I can touch NSZombieEnabled (and any other Cocoa symbols) just fine. It's only if I manually break into gdb with the "pause" button that I get the message about the OSO file.

Not great, but good enough for me to get some real work done!

~Martin

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to