• 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
Breakpoint in malloc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Breakpoint in malloc?


  • Subject: Breakpoint in malloc?
  • From: Jim Wintermyre <email@hidden>
  • Date: Tue, 21 Apr 2009 19:14:09 -0700

I'm trying to diagnose an unexpected memory allocation that is happening when I don't think there should be any memory allocation going on. Is there a way to set a breakpoint in whatever the standard allocator is that's called by malloc and new?

I've tried using MallocDebug in the Mark/Update mode, and it does show the memory allocations, but for some reason it is showing the call trace in hex instead of using the symbols. I think this is because my code is in a shared library (I saw an old post in the archives where someone else had the same problem with a shared library). Getting the stack trace out of the raw hex is kind of a pain. So any suggestions on getting that to work are also appreciated (my debug symbols are definitely present; they show up in Shark and other performance tools).

Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Breakpoint in malloc?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: HowTo Break in an NSAssert
  • Next by Date: Re: Breakpoint in malloc?
  • Previous by thread: Re: Using expl(), etc.
  • Next by thread: Re: Breakpoint in malloc?
  • Index(es):
    • Date
    • Thread