Error in Xcode debugger?

I am working on an iPhone application that uses an external library for which I have a source. During debugging, some objects are listed as 0x0 in the debugger, but the application is working fine. In addition, some of the addresses of objects indicate the wrong thing. These characters are in the external library. Addresses are good if I am viewing a file in an external library.

Does anyone have any suggestions on how to stop this behavior?

+3
source share
3 answers

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;
}
+1
source

zPesk, 0x0 nil, , ( , ). , " ". () , . ?

0

- ? gdb Thumb ARM. , , , gdb, 64 , printf ( "% p\n" ). , gdb , ARM Thumb...?

0

Source: https://habr.com/ru/post/1715294/


All Articles