• 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: Bug related to GCC_OPTIMIZATION_LEVEL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug related to GCC_OPTIMIZATION_LEVEL


  • Subject: Re: Bug related to GCC_OPTIMIZATION_LEVEL
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 1 Jun 2010 12:56:57 -0400
  • Organization: Rogue Research Inc.

On Tue, 1 Jun 2010 16:32:53 +0100, Jason Swain said:

>Jonathan, thanks for the suggestions. The problem did occur in Debug and
>it was quite difficult to get gdb to give me useful information. I had
>to get familar with x86 registers to see what was going on as the
>debugger was blind to normal variable access, according to gdb 'self'
>didn't exist. Once I got past that it got a little easier though. Your
>watchpoint suggestion lead to the solution. It was actually very simple,
>an un-initialized enum variable. Seems obvious in hindsight, but it's
>taken me the best part of a day of debugging to find it.

Did you try the clang static analyzer?  It's pretty good at detecting
using uninitialized variables.  gcc also has -Wuninitialized.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 
 >Bug related to GCC_OPTIMIZATION_LEVEL (From: Jason Swain <email@hidden>)
 >Re: Bug related to GCC_OPTIMIZATION_LEVEL (From: "email@hidden" <email@hidden>)
 >Re: Bug related to GCC_OPTIMIZATION_LEVEL (From: Jason Swain <email@hidden>)

  • Prev by Date: Re: Bug related to GCC_OPTIMIZATION_LEVEL
  • Next by Date: Xcode sometimes mysteriously not compiling xcmappingmodel correctly
  • Previous by thread: Re: Bug related to GCC_OPTIMIZATION_LEVEL
  • Next by thread: Re: Bug related to GCC_OPTIMIZATION_LEVEL
  • Index(es):
    • Date
    • Thread