From 235354be57e3b9933f9454e964b8fbe12663dfbb Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 2 Mar 2018 22:42:44 +0000 Subject: Make the clang module cache setting available without a target It turns out that setting the clang module cache after LLDB has a Target can be too late. In particular, the Swift language plugin needs to know the setting without having access to a Target. This patch moves the setting into the *LLDB* module cache, where it is a global setting that is available before any Target is created and more importantly, is shared between all Targets. rdar://problem/37944432 Differential Revision: https://reviews.llvm.org/D43984 llvm-svn: 326628 --- lldb/packages/Python/lldbsuite/test/lang/objc/modules-cache/main.m | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/lang/objc/modules-cache/main.m (limited to 'lldb/packages/Python/lldbsuite/test/lang/objc/modules-cache/main.m') diff --git a/lldb/packages/Python/lldbsuite/test/lang/objc/modules-cache/main.m b/lldb/packages/Python/lldbsuite/test/lang/objc/modules-cache/main.m new file mode 100644 index 00000000000..a502a85b638 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/lang/objc/modules-cache/main.m @@ -0,0 +1,5 @@ +@import Foo; +int main() { + f(); // Set breakpoint here. + return 0; +} -- cgit v1.2.3