• 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: Debugger Printing Wrong Variable's Value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugger Printing Wrong Variable's Value


  • Subject: Re: Debugger Printing Wrong Variable's Value
  • From: Joar Wingfors <email@hidden>
  • Date: Tue, 24 May 2011 07:16:16 -0700

On 23 maj 2011, at 13.43, Seth Willits wrote:

> Somehow when I print any variable in gdb, it's giving me a different variable's value. It's like the symbol list is off by one. Anyone ever seen this before? Valgrind doesn't show me smashing any memory and I know I'm not anyway ;-) I've cleaned and rebuilt, I've used both DWARF and Stabs...


Have you tried DWARF+dSYM? Are you debugging a debug build of your app?

While I've never seen this particular problem, I find that problems of this kind is almost always due to incomplete / incorrect debug information output by the compiler.

If you can reproduce this issue, please file a bug report. If you're using Xcode 3.x you can enable debug log output for GDB by visiting [Preferences > Debugging > GDB Log]. If you're using Xcode 4.x you can enable it using "defaults write com.apple.dt.Xcode IDEGDBLogToFile </path/to/log>". Please attach this log file to your bug report. Note that it gets overwritten at the start of every new debug session, so you need to attach the one that corresponds to a session where you hit this issue.

If you can provide a sample project that shows off the issue with your bug report, even better.

Thanks,

j o a r


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Debugger Printing Wrong Variable's Value (From: Seth Willits <email@hidden>)

  • Prev by Date: How to define allowed file extensions in Info.plist?
  • Next by Date: Re: How to define allowed file extensions in Info.plist?
  • Previous by thread: Re: Debugger Printing Wrong Variable's Value
  • Next by thread: How to jump to debug console in Xcode 4?
  • Index(es):
    • Date
    • Thread