summaryrefslogtreecommitdiffstats
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-15 22:31:18 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-15 22:31:18 +0200
commitd4a8c98ef6b294d605c5f93309509a944dc97a79 (patch)
tree4af02ac4a3d6f880ce362789d9f845255499604d /src/if_python.c
parent259f26ac2d41ecfb28b82c651b2bfc1edc7c3e29 (diff)
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_python.c')
-rw-r--r--src/if_python.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c
index 02e2cd79e3..812497a7fd 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -247,6 +247,7 @@ struct PyMethodDef { Py_ssize_t a; };
# define PySys_GetObject dll_PySys_GetObject
# define PySys_SetArgv dll_PySys_SetArgv
# define PyType_Type (*dll_PyType_Type)
+# define PyFile_Type (*dll_PyFile_Type)
# define PySlice_Type (*dll_PySlice_Type)
# define PyType_Ready (*dll_PyType_Ready)
# define PyType_GenericAlloc dll_PyType_GenericAlloc
@@ -395,6 +396,7 @@ static int(*dll_PySys_SetObject)(char *, PyObject *);
static PyObject *(*dll_PySys_GetObject)(char *);
static int(*dll_PySys_SetArgv)(int, char **);
static PyTypeObject* dll_PyType_Type;
+static PyTypeObject* dll_PyFile_Type;
static PyTypeObject* dll_PySlice_Type;
static int (*dll_PyType_Ready)(PyTypeObject *type);
static PyObject* (*dll_PyType_GenericAlloc)(PyTypeObject *type, PyInt nitems);
@@ -580,6 +582,7 @@ static struct
{"PySys_GetObject", (PYTHON_PROC*)&dll_PySys_GetObject},
{"PySys_SetArgv", (PYTHON_PROC*)&dll_PySys_SetArgv},
{"PyType_Type", (PYTHON_PROC*)&dll_PyType_Type},
+ {"PyFile_Type", (PYTHON_PROC*)&dll_PyFile_Type},
{"PySlice_Type", (PYTHON_PROC*)&dll_PySlice_Type},
{"PyType_Ready", (PYTHON_PROC*)&dll_PyType_Ready},
{"PyType_GenericAlloc", (PYTHON_PROC*)&dll_PyType_GenericAlloc},