llvm-project/lldb
Zachary Turner 7d564544eb Make dosep correctly invoke the top-level script when forking out
packages/Python/lldbsuite is now a Python package, and it relies
on its __init__.py being called to do package-level initialization.
If you exec packages/Python/lldbsuite/dotest.py directly, you won't
get this package level initialization, and things will fail.  But
without this patch, this is exactly what dosep itself does.  To
launch the multi-processing fork, it was hardcoding a path to
dotest.py and exec'ing it from inside the package.

The fix here is to get the path of the top-level script, and
then exec'ing that instead.  A more robust solution would involve
refactoring the code so that dosep execs some internal script that
imports lldbsuite, but that's a bit more involved.

Differential Revision: http://reviews.llvm.org/D14157
Reviewed by: Todd Fiala

llvm-svn: 251819
2015-11-02 19:19:49 +00:00
..
cmake Correctly include LLVM_EXTERNAL_CLANG_SOURCE_DIR. 2015-10-29 00:48:38 +00:00
docs Have debugserver send the OS version string plus 2015-08-12 03:27:33 +00:00
examples Fix tabs and spaces in one of the python files. 2015-10-26 16:51:36 +00:00
include Fix Clang-tidy modernize-use-nullptr warnings in include/lldb/API and source/API; other minor fixes. 2015-10-31 01:22:59 +00:00
lib Add initial gmake glue for the NetBSD platform 2015-10-24 01:28:24 +00:00
lit Create a check-lldb-unit target to run unit tests. 2015-03-13 20:55:07 +00:00
lldb.xcodeproj Added real editline tests. 2015-10-30 02:54:52 +00:00
lldb.xcworkspace Working on getting the OSX build green 2015-05-12 02:20:27 +00:00
packages/Python/lldbsuite Make dosep correctly invoke the top-level script when forking out 2015-11-02 19:19:49 +00:00
resources Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00
scripts Rename argdumper to lldb-argdumper 2015-10-29 05:07:12 +00:00
source Fix Clang-tidy modernize-use-nullptr warnings in include/lldb/API and source/API; other minor fixes. 2015-10-31 01:22:59 +00:00
test Add check for __main__ in dotest.py to ensure problems with multiprocessing on some Windows machines. 2015-10-28 19:59:18 +00:00
third_party/Python/module Preparation for turning lldbsuite into a Python package. 2015-10-27 22:33:47 +00:00
tools Handle the options and parameters separator in every MI command 2015-11-02 11:43:40 +00:00
unittests Added real editline tests. 2015-10-30 02:54:52 +00:00
utils syncsource.py: a specific dir's source_excludes may now include the special entry "<no-defaults>". 2015-10-08 17:43:02 +00:00
www Support RHEL 7 and similar systems that use architecture-specific Python lib dirs 2015-10-12 20:12:27 +00:00
.arcconfig Update .arcconfig to point to reviews.llvm.org 2014-05-20 21:24:59 +00:00
.clang-format Update build instructions / coding conventions. 2015-03-10 23:22:25 +00:00
.gitignore Fix .gitignore to ignore symlinks. 2015-03-31 00:03:00 +00:00
CMakeLists.txt Fixup lldb-argdumper cmake build 2015-10-29 14:14:24 +00:00
CODE_OWNERS.txt Convert CRLF to LF in CODE_OWNERS.txt 2015-03-23 14:00:54 +00:00
INSTALL.txt Revert the patch to Test Commit Access 2015-07-06 11:26:51 +00:00
LICENSE.TXT
Makefile Test commit 2015-07-22 08:41:18 +00:00
lldb.root Introduce a mechanism for reusing Python modules out of tree. 2015-10-20 21:05:57 +00:00
use_lldb_suite_root.py Preparation for turning lldbsuite into a Python package. 2015-10-27 22:33:47 +00:00