On Tue, Dec 23, 2008 at 2:25 PM, Bill Bumgarner <b...@mac.com> wrote: > Obviously, knowing what array is crashing will help. You might be able to > set a breakpoint on NSCFArray's finalize and then add a script to the > breakpoint that po's the object. > > Something like (you'll have to paste then in one line at a time into the > debugging console or GDB will get cranky): > > b -[NSCFArray finalize] > command > po *(void**)($ebp+8) > continue > end
And, FYI, to do the same thing (i.e. print the value of self when you enter a method) when you're not running i386, just replace that po line with: For x86_64: po $rdi For ppc/ppc64: po $r3 -- Clark S. Cox III clarkc...@gmail.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com