Generic exception support
authorMark Florisson <markflorisson88@gmail.com>
Tue, 14 Dec 2010 22:15:06 +0000 (23:15 +0100)
committerMark Florisson <markflorisson88@gmail.com>
Tue, 14 Dec 2010 22:15:06 +0000 (23:15 +0100)
Cython/Debugger/libpython.py

index ede04047f247be38350dbe498db28092f28a389b..c83d7ddf3f32714404c3daa7e58bbd9e805d4120 100644 (file)
@@ -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