Re: Xcode/gdb type confusion for floats
Re: Xcode/gdb type confusion for floats
- Subject: Re: Xcode/gdb type confusion for floats
- From: Kai-Mikael Jää-Aro <email@hidden>
- Date: Tue, 22 May 2007 15:12:30 +0200
Jens Ayton kirjoitti 2007-05-22 kello 15:02:
Kai-Mikael Jää-Aro:
I spent some time vainly debugging a piece of Objective-C code where
the variables apparently were getting random values, until I realised
the problem lay in the debugger.
To be precise, what happens is that all local variables in my method
that have the type float display incorrect values in the variable
view. When I changed the variables' types to double, they displayed
the correct values.
This could potentially be caused by debugging an optimized executable.
Ah, so it was, thanks! Just for my curiosity - does this mean the
compiler actually changes types for variables when optimizing?
[Now, who turned optimization on for the Debug configuration?
Mumble...]
_______________________________________________
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