2 #include <objc/Object.h>
4 @interface Decode: Object
8 - (const char *) myDescription;
11 @implementation Decode
15 printf("method multipleDef\n");
19 - (const char *) myDescription
21 return "Decode gdb test object";
29 printf("function multipleDef\n");
33 int main (int argc, const char *argv[])
42 const char *_NSPrintForDebugger(id object)
44 /* This is not really what _NSPrintForDebugger should do, but it
45 is a simple test if gdb can call this function */
46 if (object && [object respondsTo: @selector(myDescription)])
47 return [object myDescription];