0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.1846: Python interface is incompatible with lldb

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.
This commit is contained in:
Bram Moolenaar
2018-05-15 22:31:18 +02:00
parent 259f26ac2d
commit d4a8c98ef6
4 changed files with 11 additions and 0 deletions

View File

@@ -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));