Re: pointer address changes for no reason
Re: pointer address changes for no reason
- Subject: Re: pointer address changes for no reason
- From: "Ewan Delanoy" <email@hidden>
- Date: Mon, 9 Apr 2007 10:08:20 +0200 (CEST)
- Importance: Normal
>> Ideally
>> I would like to use a "global" watchpoint on my numPagesField IBoutlet,
>> but such
>> a tool does not exist ...
>Well, yes, it does and you were pointed to it earlier in this thread. Use
>gdb to set a watchpoint on that address. Sorry, I haven't needed to do that
>in a while and don't remember exact syntax, but check gdb docs.
The problem is that the numPagesField pointer's address changes
misteriously from the (valid) value 0x4a9c010 to the (invalid) value 0x15.
If I tell gdb "watch numPagesField" (or "awatch","rwatch" in place of
"watch") inside a block where numPagesField
is used, the watchpoint deletes itself automatically when the program leaves
the block (at which point the address is still correct). If I tell gdb
"watch 0x4a9c010" or "watch 0x15", the debugger freezes
and if I force it to pause, it prints the message
"Unable to disassemble objc_msgSend_rtp."
Ewan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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