diff options
author | Enrico Granata <egranata@apple.com> | 2016-11-03 17:25:27 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-11-03 17:25:27 +0000 |
commit | 7700de8c302ed5d741bb16d807f554ce5e64275c (patch) | |
tree | 5b30461331014f1ad40c7f4913c6a2a75794f478 /lldb/packages/Python/lldbsuite/test | |
parent | 6ab92e8a3a1c67e6460c719833c2334425789b31 (diff) | |
download | bcm5719-llvm-7700de8c302ed5d741bb16d807f554ce5e64275c.tar.gz bcm5719-llvm-7700de8c302ed5d741bb16d807f554ce5e64275c.zip |
Add support to the ObjC type scavenger for finding types via debug info
llvm-svn: 285941
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/TestTypeLookup.py | 1 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/main.mm | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/TestTypeLookup.py b/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/TestTypeLookup.py index 62f7766604c..b0f52923cc1 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/TestTypeLookup.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/TestTypeLookup.py @@ -52,3 +52,4 @@ class TypeLookupTestCase(TestBase): "no type was found matching 'PleaseDontBeARealTypeThatExists'"]) self.expect('type lookup MyCPPClass', substrs=['setF', 'float getF']) self.expect('type lookup MyClass', substrs=['setF', 'float getF']) + self.expect('type lookup MyObjCClass', substrs=['@interface MyObjCClass', 'int x', 'int y']) diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/main.mm b/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/main.mm index d522e0b16d7..f62e5cb5b8c 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/main.mm +++ b/lldb/packages/Python/lldbsuite/test/functionalities/type_lookup/main.mm @@ -28,6 +28,28 @@ private: typedef MyCPPClass MyClass; +@interface MyObjCClass : NSObject { + int x; +} +- (id)init; +- (int)read; +@end + +@implementation MyObjCClass { + int y; +} +- (id)init { + if (self = [super init]) { + self->x = 12; + self->y = 24; + } + return self; +} +- (int)read { + return self->x + self->y; +} +@end + int main (int argc, const char * argv[]) { MyClass my_cpp(3.1415); |