summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-12-09 17:54:59 +0000
committerGreg Clayton <gclayton@apple.com>2016-12-09 17:54:59 +0000
commit8f618117897e0718aa7950c2e892aa6fdc502ebc (patch)
treed16a962ffbefe75ce9a60238dd34e680d7678a00 /lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument
parent017b7a71d82b5c154055ac6aa7997db5d2bf38ba (diff)
downloadbcm5719-llvm-8f618117897e0718aa7950c2e892aa6fdc502ebc.tar.gz
bcm5719-llvm-8f618117897e0718aa7950c2e892aa6fdc502ebc.zip
Fix i386 being able to show member variables correctly by not returning empty objective C types from the runtime.
We don't parse ObjC v1 types from the runtime metadata like we do for ObjC v2, but doing so by creating empty types was ruining the i386 v1 debugging experience. <rdar://problem/24093343> llvm-svn: 289233
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m b/lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m
index 8bf0ec07b71..f013c560239 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m
+++ b/lldb/packages/Python/lldbsuite/test/lang/objc/objc-struct-argument/test.m
@@ -25,10 +25,10 @@ int main()
ThingSummer *summer = [ThingSummer alloc];
struct things_to_sum tts = { 2, 3, 4 };
int ret = [summer sumThings:tts];
-
NSRect rect = {{0, 0}, {10, 20}};
-
- // Set breakpoint here.
- return rect.origin.x;
+ // The Objective C V1 runtime won't read types from metadata so we need
+ // NSValue in our debug info to use it in our test.
+ NSValue *v = [NSValue valueWithRect:rect];
+ return rect.origin.x; // Set breakpoint here.
}
}
OpenPOWER on IntegriCloud