1 #include <objc/Object.h>
3 @interface Decode: Object
7 - (const char *) myDescription;
10 @implementation Decode
14 printf("method multipleDef\n");
18 - (const char *) myDescription
20 return "Decode gdb test object";
28 printf("function multipleDef\n");
32 int main (int argc, const char *argv[])
41 const char *_NSPrintForDebugger(id object)
43 /* This is not really what _NSPrintForDebugger should do, but it
44 is a simple test if gdb can call this function */
45 if (object && [object respondsTo: @selector(myDescription)])
46 return [object myDescription];