
This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
26 lines
373 B
Objective-C
26 lines
373 B
Objective-C
#import "Foo.h"
|
|
|
|
@implementation Foo
|
|
|
|
- (id)init
|
|
{
|
|
self = [super init];
|
|
if (self) {
|
|
_bar = [[Bar alloc] init];
|
|
}
|
|
return self; // Set breakpoint where Bar is an interface
|
|
}
|
|
|
|
- (void)dealloc
|
|
{
|
|
[_bar release];
|
|
[super dealloc];
|
|
}
|
|
|
|
- (NSString *)description
|
|
{
|
|
return [NSString stringWithFormat:@"%p: @Foo { _bar = %@ }", self, _bar];
|
|
}
|
|
|
|
@end
|