Re: Debugging memory smashers with GC
Re: Debugging memory smashers with GC
- Subject: Re: Debugging memory smashers with GC
- From: "Clark Cox" <email@hidden>
- Date: Tue, 23 Dec 2008 14:42:28 -0500
On Tue, Dec 23, 2008 at 2:25 PM, Bill Bumgarner <email@hidden> 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
email@hidden
_______________________________________________
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