[pypy-svn] r35340 - pypy/dist/pypy/translator/tool

arigo at codespeak.net arigo at codespeak.net
Tue Dec 5 21:55:49 CET 2006


Author: arigo
Date: Tue Dec  5 21:55:44 2006
New Revision: 35340

Modified:
   pypy/dist/pypy/translator/tool/graphpage.py
Log:
Avoid a crash in pdbplus with 'callg non_annotated_function'.


Modified: pypy/dist/pypy/translator/tool/graphpage.py
==============================================================================
--- pypy/dist/pypy/translator/tool/graphpage.py	(original)
+++ pypy/dist/pypy/translator/tool/graphpage.py	Tue Dec  5 21:55:44 2006
@@ -375,7 +375,10 @@
     that means just including direct callers and callees"""
 
     def graph_name(self, centers):
-        return 'LCG_%s' % nameof(centers[0])
+        if centers:
+            return 'LCG_%s' % nameof(centers[0])
+        else:
+            return 'EMPTY'
 
     def do_compute(self, dotgen, centers):
         centers = dict.fromkeys(centers)



More information about the Pypy-commit mailing list