[PATCH] D47967: [debuginfo-tests] Always use the system python to invoke llgdb.py.

Ahmed Bougacha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 8 17:24:20 PDT 2018


ab created this revision.
ab added a reviewer: aprantl.
Herald added a subscriber: JDevlieghere.

llgdb.py almost always ends up using the system LLDB python and framework.  LLDB.framework is linked against the system python. If we have a different python installed, and first in PATH, we're going to try using that, which invariably fails because of internal data structure incompatibilities.

Don't pretend we can use any arbitrary python: just use the system one.


https://reviews.llvm.org/D47967

Files:
  test_debuginfo.pl


Index: test_debuginfo.pl
===================================================================
--- test_debuginfo.pl
+++ test_debuginfo.pl
@@ -56,7 +56,7 @@
 if (!$my_debugger) {
     if ($use_lldb) {
         my $path = dirname(Cwd::abs_path($0));
-        $my_debugger = "/usr/bin/env python $path/llgdb.py";
+        $my_debugger = "/usr/bin/python $path/llgdb.py";
     } else {
         $my_debugger = "gdb";
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47967.150593.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180609/37286278/attachment.bin>


More information about the llvm-commits mailing list