From 4a6be43d42eddd47950811f8ad1862e31db398d9 Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Sat, 6 Nov 2010 15:17:53 +0100 Subject: [PATCH] Fixed 'cy bt' bug where backtraces wouldn't be printed if the name of a function couldn't be looked up for some stack frame --- Cython/Debugger/libcython.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Cython/Debugger/libcython.py b/Cython/Debugger/libcython.py index e611aed3..30264f60 100644 --- a/Cython/Debugger/libcython.py +++ b/Cython/Debugger/libcython.py @@ -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() -- 2.26.2