From: Mark Florisson Date: Sat, 13 Nov 2010 12:54:07 +0000 (+0100) Subject: Fix DebugTransform compiler crash X-Git-Tag: 0.14.beta0~1^2~20 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f90c4d3f337b2256cb831670d9f23e41d9a44aca;p=cython.git Fix DebugTransform compiler crash --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index b3ced456..bba734a0 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1582,7 +1582,8 @@ class DebugTransform(CythonTransform): def visit_NameNode(self, node): if (self.register_stepinto and node.type.is_cfunction and - getattr(node, 'is_called', False)): + getattr(node, 'is_called', False) and + node.entry.func_cname is not None): # don't check node.entry.in_cinclude, as 'cdef extern: ...' # declared functions are not 'in_cinclude'. # This means we will list called 'cdef' functions as