Re: Bug related to GCC_OPTIMIZATION_LEVEL
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