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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user