• 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: Debugging memory smashers with GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Debugging memory smashers with GC (From: Rob Keniger <email@hidden>)
 >Re: Debugging memory smashers with GC (From: Bill Bumgarner <email@hidden>)
 >Re: Debugging memory smashers with GC (From: Rob Keniger <email@hidden>)
 >Re: Debugging memory smashers with GC (From: Rob Keniger <email@hidden>)
 >Re: Debugging memory smashers with GC (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Main menu crash when migrating to Leopard
  • Next by Date: Re: selectionShouldChangeInTableView called twice
  • Previous by thread: Re: Debugging memory smashers with GC
  • Next by thread: observeValueForKeyPath and how to do it right
  • Index(es):
    • Date
    • Thread