churchyard / rpms / python2

Forked from rpms/python2 2 years ago
Clone
Blob Blame History Raw
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 9def56e..c0df208 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -939,6 +939,9 @@ class PyFrameObjectPtr(PyObjectPtr):
         if self.is_optimized_out():
             return '(frame information optimized out)'
 
+        if self.filename() == '<string>':
+            return '(in an eval block)'
+
         lineno = self.current_line_num()
         if lineno is None:
             return '(failed to get frame line number)'