[Lldb-commits] [lldb] r221208 - Added a test case for reading ivars from the

Sean Callanan scallanan at apple.com
Mon Nov 3 16:06:34 PST 2014


Author: spyffe
Date: Mon Nov  3 18:06:34 2014
New Revision: 221208

URL: http://llvm.org/viewvc/llvm-project?rev=221208&view=rev
Log:
Added a test case for reading ivars from the
Objective-C runtime.  We'll need to do more
(subclasses, partially-defined classes, etc.)
but this tests that at least the basics work.

Added:
    lldb/trunk/test/lang/objc/objc-runtime-ivars/
    lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py
    lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m

Added: lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py?rev=221208&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py (added)
+++ lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py Mon Nov  3 18:06:34 2014
@@ -0,0 +1,4 @@
+import lldbinline
+import lldbtest
+
+lldbinline.MakeInlineTest(__file__, globals(), [lldbtest.skipIfFreeBSD,lldbtest.skipIfLinux,lldbtest.skipIfWindows])

Added: lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m?rev=221208&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m (added)
+++ lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m Mon Nov  3 18:06:34 2014
@@ -0,0 +1,10 @@
+#import <Foundation/Foundation.h>
+
+int main ()
+{
+  @autoreleasepool
+  {
+    NSLog(@"Hello"); //% self.expect("expression -- *((NSConcretePointerArray*)[NSPointerArray strongObjectsPointerArray])", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["count", "capacity", "options", "mutations"]);
+                     //% self.expect("expression -- ((NSConcretePointerArray*)[NSPointerArray strongObjectsPointerArray])->count", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["unsigned long long"]);
+  }
+}





More information about the lldb-commits mailing list