Fixed 'cy bt' bug where backtraces wouldn't be printed if the name of a function...
authorMark Florisson <markflorisson88@gmail.com>
Sat, 6 Nov 2010 14:17:53 +0000 (15:17 +0100)
committerMark Florisson <markflorisson88@gmail.com>
Sat, 6 Nov 2010 14:17:53 +0000 (15:17 +0100)
Cython/Debugger/libcython.py

index e611aed3b34a79e390eefdbf955905ad6f453de1..30264f60227d304b14a989b819ae0c600d4db550 100644 (file)
@@ -907,11 +907,14 @@ class CyBacktrace(CythonCommand):
         while frame:
             is_c = False
             
-            if print_all or self.is_relevant_function(frame):
-                try:
-                    self.print_stackframe(frame, index)
-                except gdb.GdbError:
-                    print 'Unable to fsdk.fjkds'
+            is_relevant = False
+            try:
+                is_relevant = self.is_relevant_function(frame)
+            except CyGDBError:
+                pass
+                
+            if print_all or is_relevant:
+                self.print_stackframe(frame, index)
             
             index += 1
             frame = frame.newer()