From d4a8c98ef6b294d605c5f93309509a944dc97a79 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 15 May 2018 22:31:18 +0200 Subject: 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. --- src/if_py_both.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/if_py_both.h') diff --git a/src/if_py_both.h b/src/if_py_both.h index 48137f1e37..247fc9a088 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)); -- cgit v1.2.3