Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Memory Debugging Fun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Debugging Fun



on 5/28/04 8:14 AM, Mark Thomas <email@hidden> wrote:

> Hi,
> I was wondering if I can some how change the protection bit of a bit piece
> of linear memory (well a lots linear memory) so that it can help in tracking
> down a possible wondering pointer issue. As I have large areas of pools
> which are setup, but are then not written to again (but they are getting
> corrupted by something :-( ), so can I change the access to that area in the
> same way we can do with MakeDataExecutable, so you can execute it. Guard
> pages aren't picking it up :-(.
>
> I've seen that maybe I could use mapfile to do this, but I don't see how I
> could create one, then change the access to it.
>
> Any ideas ???

I don't know about XCode (haven't hardly used it yet) but in CodeWarrior you
can just set a watchpoint. However I found one instance a few months back
where a CW watchpoint failed to fire when the memory in question was
modified.

-Kurt Bigler
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Memory Debugging Fun (From: Mark Thomas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.