summaryrefslogtreecommitdiff
path: root/src/if_python3.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_python3.c
parent259f26ac2d41ecfb28b82c651b2bfc1edc7c3e29 (diff)
downloadvim-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_python3.c')
-rw-r--r--src/if_python3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if_python3.c b/src/if_python3.c
index 4360fe45c..f713f5623 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -231,6 +231,7 @@ typedef PySliceObject PySliceObject_T;
# define PyFloat_AsDouble py3_PyFloat_AsDouble
# define PyObject_GenericGetAttr py3_PyObject_GenericGetAttr
# define PyType_Type (*py3_PyType_Type)
+# define PyStdPrinter_Type (*py3_PyStdPrinter_Type)
# define PySlice_Type (*py3_PySlice_Type)
# define PyFloat_Type (*py3_PyFloat_Type)
# define PyNumber_Check (*py3_PyNumber_Check)
@@ -388,6 +389,7 @@ static PyObject* (*py3_PyObject_GenericGetAttr)(PyObject *obj, PyObject *name);
static PyObject* (*py3_PyType_GenericAlloc)(PyTypeObject *type, Py_ssize_t nitems);
static PyObject* (*py3_PyType_GenericNew)(PyTypeObject *type, PyObject *args, PyObject *kwds);
static PyTypeObject* py3_PyType_Type;
+static PyTypeObject* py3_PyStdPrinter_Type;
static PyTypeObject* py3_PySlice_Type;
static PyTypeObject* py3_PyFloat_Type;
static PyTypeObject* py3_PyBool_Type;
@@ -548,6 +550,7 @@ static struct
{"PyType_GenericAlloc", (PYTHON_PROC*)&py3_PyType_GenericAlloc},
{"PyType_GenericNew", (PYTHON_PROC*)&py3_PyType_GenericNew},
{"PyType_Type", (PYTHON_PROC*)&py3_PyType_Type},
+ {"PyStdPrinter_Type", (PYTHON_PROC*)&py3_PyStdPrinter_Type},
{"PySlice_Type", (PYTHON_PROC*)&py3_PySlice_Type},
{"PyFloat_Type", (PYTHON_PROC*)&py3_PyFloat_Type},
{"PyBool_Type", (PYTHON_PROC*)&py3_PyBool_Type},