From 4befb1f96d641a958548654b2c3b674f0ce8404c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 16 Jun 2017 21:04:22 +0000 Subject: Vendor import of lldb trunk r305575: https://llvm.org/svn/llvm-project/lldb/trunk@305575 --- .../test/macosx/find-dsym/deep-bundle/main.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/Python/lldbsuite/test/macosx/find-dsym/deep-bundle/main.c (limited to 'packages/Python/lldbsuite/test/macosx/find-dsym/deep-bundle/main.c') diff --git a/packages/Python/lldbsuite/test/macosx/find-dsym/deep-bundle/main.c b/packages/Python/lldbsuite/test/macosx/find-dsym/deep-bundle/main.c new file mode 100644 index 000000000000..19715216d6cf --- /dev/null +++ b/packages/Python/lldbsuite/test/macosx/find-dsym/deep-bundle/main.c @@ -0,0 +1,22 @@ +#include +#include +#include + +int setup_is_complete = 0; + +int main() +{ + system ("/bin/rm -rf MyFramework MyFramework.framework MyFramework.framework.dSYM"); + + setup_is_complete = 1; + + // At this point we want lldb to attach to the process. If lldb attaches + // before we've removed the framework we're running against, it will be + // easy for lldb to find the binary & dSYM without using target.exec-search-paths, + // which is the point of this test. + + for (int loop_limiter = 0; loop_limiter < 100; loop_limiter++) + sleep (1); + + return foo(); +} -- cgit v1.2.3