Commit d5b259c5 authored by Robert Bradshaw's avatar Robert Bradshaw

A couple of DebugTransform fixes.

parent 31422c4c
...@@ -2937,6 +2937,7 @@ class DebugTransform(CythonTransform): ...@@ -2937,6 +2937,7 @@ class DebugTransform(CythonTransform):
def visit_NameNode(self, node): def visit_NameNode(self, node):
if (self.register_stepinto and if (self.register_stepinto and
node.type is not None and
node.type.is_cfunction and node.type.is_cfunction and
getattr(node, 'is_called', False) and getattr(node, 'is_called', False) and
node.entry.func_cname is not None): node.entry.func_cname is not None):
......
...@@ -42,7 +42,7 @@ class CythonDebugWriter(object): ...@@ -42,7 +42,7 @@ class CythonDebugWriter(object):
if etree is None: if etree is None:
raise Errors.NoElementTreeInstalledException() raise Errors.NoElementTreeInstalledException()
self.output_dir = os.path.join(output_dir, 'cython_debug') self.output_dir = os.path.join(output_dir or os.curdir, 'cython_debug')
self.tb = etree.TreeBuilder() self.tb = etree.TreeBuilder()
# set by Cython.Compiler.ParseTreeTransforms.DebugTransform # set by Cython.Compiler.ParseTreeTransforms.DebugTransform
self.module_name = None self.module_name = None
......
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