UPDATE : Target Settings> Creation Tab> GCC 4.2 Code Generation> Compile for Thumb
I disabled this target setting and the gdb issue disappeared.
-
Hi John.
I understand what you are talking about. I also see a problem when gdb and NSLog () give me different results for pointers in some parts of my code.
In the above example, gdb does not report the correct value for the "pointer" when I set a breakpoint on any line of this function:
id testPointer( id pointer )
{
NSLog( @"pointer value: %p", pointer );
@try
{
NSLog( @"foo" );
}
@catch ( NSException *e )
{ }
@finally
{ }
return pointer;
}
source
share