An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
6e8c2f 1 --- Python-2.7.5-orig/Tools/gdb/libpython.py    2013-05-12 03:32:54.000000000 +0000
CB 2 +++ Python-2.7.5-orig/Tools/gdb/libpython.py    2013-09-15 09:56:25.494000000 +0000
3 @@ -887,6 +887,8 @@ 
4          newline character'''
5          if self.is_optimized_out():
6              return '(frame information optimized out)'
7 +        if self.filename() == '<string>':
8 +            return '(in an eval block)'
9          with open(self.filename(), 'r') as f:
10              all_lines = f.readlines()
11              # Convert from 1-based current_line_num to 0-based list offset: