From: Mark Florisson Date: Sat, 6 Nov 2010 14:17:53 +0000 (+0100) Subject: Fixed 'cy bt' bug where backtraces wouldn't be printed if the name of a function... X-Git-Tag: 0.14.beta0~1^2~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a6be43d42eddd47950811f8ad1862e31db398d9;p=cython.git 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 --- 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()