Re: pointer address changes for no reason
Re: pointer address changes for no reason
- Subject: Re: pointer address changes for no reason
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 9 Apr 2007 10:05:50 -0600
On Apr 9, 2007, at 2:08 AM, Ewan Delanoy wrote:
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."
Xcode's watchpoint feature is worse than useless in 2.4.x and
earlier, and the "watch" command doesn't work correctly unless you
call it in a very certain way.
Try this instead: <http://lists.apple.com/archives/xcode-users/2004/
Oct/msg00275.html>
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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