From: Mark Florisson Date: Tue, 14 Dec 2010 22:15:06 +0000 (+0100) Subject: Generic exception support X-Git-Tag: 0.14.1rc0~12^2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=da24fe3127464a2a908de2668856475dee8a5985;p=cython.git Generic exception support --- diff --git a/Cython/Debugger/libpython.py b/Cython/Debugger/libpython.py index ede04047..c83d7ddf 100644 --- a/Cython/Debugger/libpython.py +++ b/Cython/Debugger/libpython.py @@ -1969,6 +1969,9 @@ class ExecutionControlCommandBase(gdb.Command): else: frame = gdb.selected_frame() if self.lang_info.is_relevant_function(frame): + raised_exception = self.lang_info.exc_info(frame) + if raised_exception: + print raised_exception print self.lang_info.get_source_line(frame) or result else: print result