Blame SOURCES/00189-gdb-py-bt-dont-raise-exception-from-eval.patch

6e8c2f
--- Python-2.7.5-orig/Tools/gdb/libpython.py	2013-05-12 03:32:54.000000000 +0000
6e8c2f
+++ Python-2.7.5-orig/Tools/gdb/libpython.py	2013-09-15 09:56:25.494000000 +0000
6e8c2f
@@ -887,6 +887,8 @@ 
6e8c2f
         newline character'''
6e8c2f
         if self.is_optimized_out():
6e8c2f
             return '(frame information optimized out)'
6e8c2f
+        if self.filename() == '<string>':
6e8c2f
+            return '(in an eval block)'
6e8c2f
         with open(self.filename(), 'r') as f:
6e8c2f
             all_lines = f.readlines()
6e8c2f
             # Convert from 1-based current_line_num to 0-based list offset: