Commit 793d463d authored by Robert Bradshaw's avatar Robert Bradshaw

A couple of DebugTransform fixes.

--HG--
extra : transplant_source : %9F%CF%A5%F6%88H%DA%FFqJx%F5%7F%A1%CFD%1F%B5%09U
parent 42a7aa55
...@@ -2934,6 +2934,7 @@ class DebugTransform(CythonTransform): ...@@ -2934,6 +2934,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