mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-30 23:40:24 +00:00
28f2d60014
* gdb.objc/nondebug.m: New file.
39 lines
410 B
Objective-C
39 lines
410 B
Objective-C
#include <objc/Object.h>
|
|
|
|
@interface NonDebug: Object
|
|
{
|
|
}
|
|
@end
|
|
@interface NonDebug2: Object
|
|
{
|
|
}
|
|
@end
|
|
|
|
@implementation NonDebug
|
|
|
|
- someMethod
|
|
{
|
|
printf("method someMethod\n");
|
|
return self;
|
|
}
|
|
|
|
@end
|
|
@implementation NonDebug2
|
|
|
|
- someMethod
|
|
{
|
|
printf("method2 someMethod\n");
|
|
return self;
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
int main (int argc, const char *argv[])
|
|
{
|
|
id obj;
|
|
obj = [NonDebug new];
|
|
[obj someMethod];
|
|
return 0;
|
|
}
|