Re: How set breakpoint in szone_error?
Re: How set breakpoint in szone_error?
- Subject: Re: How set breakpoint in szone_error?
- From: "Sean McBride" <email@hidden>
- Date: Thu, 21 Sep 2006 11:18:27 -0400
- Organization: Rogue Research
On 2006-09-20 07:56, Bill Cheeseman said:
>Xcode tells me to set a breakpoint in szone_error to debug a memory problem.
>I can't find any documentation explaining how to do this. Can somebody give
>me a step-by-step?
I suggest creating a .gdbinit file in your home folder and placing the
following in it:
fb -[NSException raise]
fb objc_exception_throw()
fb -[_NSZombie release]
fb szone_error
Save as ASCII with unix line endings. Then gdb will always break on
those 4 places, which is quite handy. However, sometimes the OS gives
messages saying to break on szone_error even though the code path that
gets you to that message never uses szone_error. :( Please file a
dupe. :) You can break on malloc_printf instead, but that function also
prints the heap checking messages and so can trigger far too often.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden