Commit 7c6598c1 authored by Mark Florisson's avatar Mark Florisson

Merged with libpython.py from Python3.2 + prevented continuation with negative...

Merged with libpython.py from Python3.2 + prevented continuation with negative pointer values gdb was giving to avoid segfaulting the inferior when using 'cy exec'
parent 391a3837
......@@ -42,7 +42,9 @@ def make_command_file(path_to_debug_info, prefix_code='', no_import=False):
f.write('python from Cython.Debugger import libcython\n')
if no_import:
f.write("file %s\n" % sys.executable)
# don't do this, this overrides file command in .gdbinit
# f.write("file %s\n" % sys.executable)
pass
else:
path = os.path.join(path_to_debug_info, "cython_debug", "interpreter")
interpreter = open(path).read()
......
......@@ -1152,7 +1152,7 @@ class CyExec(CythonCommand, libpython.PyExec):
pystringp = executor.alloc_pystring(name)
code = '''
PyDict_SetItem(
(PyObject *) PyDict_SetItem(
(PyObject *) %d,
(PyObject *) %d,
(PyObject *) %s)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment