aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.objc/objcdecode.m
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-06-06 12:25:33 +0100
committerPedro Alves <palves@redhat.com>2017-06-06 12:25:33 +0100
commit58aa785057d718c91f9db5e8b627687a01df14a2 (patch)
tree06fcc8db75fb4cd06c3bee4b03d47ce921da06b9 /gdb/testsuite/gdb.objc/objcdecode.m
parent670b1a13351f34c38ea1abb6cb20e247fb002015 (diff)
downloadbinutils-users/palves/fix-objc-tests.zip
binutils-users/palves/fix-objc-tests.tar.gz
binutils-users/palves/fix-objc-tests.tar.bz2
Diffstat (limited to 'gdb/testsuite/gdb.objc/objcdecode.m')
-rw-r--r--gdb/testsuite/gdb.objc/objcdecode.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.objc/objcdecode.m b/gdb/testsuite/gdb.objc/objcdecode.m
index 5e99618..5485337 100644
--- a/gdb/testsuite/gdb.objc/objcdecode.m
+++ b/gdb/testsuite/gdb.objc/objcdecode.m
@@ -1,6 +1,7 @@
-#include <objc/Object.h>
+#import <Foundation/Foundation.h>
+#include <stdio.h>
-@interface Decode: Object
+@interface Decode: NSObject
{
}
- multipleDef;
@@ -42,7 +43,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;