diff options
Diffstat (limited to 'gdb/testsuite/gdb.objc/basicclass.m')
-rw-r--r-- | gdb/testsuite/gdb.objc/basicclass.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.objc/basicclass.m b/gdb/testsuite/gdb.objc/basicclass.m index 0de12db..eb62a35 100644 --- a/gdb/testsuite/gdb.objc/basicclass.m +++ b/gdb/testsuite/gdb.objc/basicclass.m @@ -1,6 +1,7 @@ -#include <objc/Object.h> +#import <Foundation/Foundation.h> +#include <stdio.h> -@interface BasicClass: Object +@interface BasicClass: NSObject { id object; } @@ -74,7 +75,7 @@ const char *_NSPrintForDebugger(id object) { /* This is not really what _NSPrintForDebugger should do, but it is a simple test if gdb can call this function */ - if (object && [object respondsTo: @selector(myDescription)]) + if (object && [object respondsToSelector: @selector(myDescription)]) return [object myDescription]; return NULL; |