diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-05-15 22:31:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-05-15 22:31:18 +0200 |
commit | d4a8c98ef6b294d605c5f93309509a944dc97a79 (patch) | |
tree | 4af02ac4a3d6f880ce362789d9f845255499604d /src/if_py_both.h | |
parent | 259f26ac2d41ecfb28b82c651b2bfc1edc7c3e29 (diff) | |
download | vim-git-d4a8c98ef6b294d605c5f93309509a944dc97a79.tar.gz |
patch 8.0.1846: Python interface is incompatible with lldbv8.0.1846
Problem: Python interface is incompatible with lldb.
Solution: For OutputType set the base to be PyFile_Type. (Boxu Zhang)
Partly disabled to avoid a crash.
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 48137f1e3..247fc9a08 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -6333,9 +6333,12 @@ init_structs(void) OutputType.tp_alloc = call_PyType_GenericAlloc; OutputType.tp_new = call_PyType_GenericNew; OutputType.tp_free = call_PyObject_Free; + OutputType.tp_base = &PyStdPrinter_Type; #else OutputType.tp_getattr = (getattrfunc)OutputGetattr; OutputType.tp_setattr = (setattrfunc)OutputSetattr; + // Disabled, because this causes a crash in test86 + // OutputType.tp_base = &PyFile_Type; #endif vim_memset(&IterType, 0, sizeof(IterType)); |