From da24fe3127464a2a908de2668856475dee8a5985 Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Tue, 14 Dec 2010 23:15:06 +0100 Subject: [PATCH] Generic exception support --- Cython/Debugger/libpython.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2