• 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
Re: pointer address changes for no reason
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: pointer address changes for no reason (From: "Ewan Delanoy" <email@hidden>)
 >Re: pointer address changes for no reason (From: Scott Ribe <email@hidden>)
 >Re: pointer address changes for no reason (From: "Ewan Delanoy" <email@hidden>)

  • Prev by Date: Re: Table Issue
  • Next by Date: Re: problem with interaction between NSTableView and fieldEditor
  • Previous by thread: Re: pointer address changes for no reason
  • Next by thread: Re: pointer address changes for no reason
  • Index(es):
    • Date
    • Thread