  class PyObjectPtr(object):
      """
      Class wrapping a gdb.Value that's a either a (PyObject*) within the
-@@ -232,28 +250,8 @@ class PyObjectPtr(object):
+@@ -257,28 +275,8 @@ class PyObjectPtr(object):
          visiting object graphs with loops).  Analogous to Py_ReprEnter and
          Py_ReprLeave
          '''

             out.write('=')
             pyop_val.write_repr(out, visited)
         out.write(')')
@@ -785,6 +783,8 @@ class PyNoneStructPtr(PyObjectPtr):
     def proxyval(self, visited):
         return None
 

diff -up Python-2.7.11/Tools/gdb/libpython.py.fix-fake-repr-in-gdb-hooks Python-2.7.11/Tools/gdb/libpython.py
--- Python-2.7.11/Tools/gdb/libpython.py.fix-fake-repr-in-gdb-hooks	2015-12-05 19:47:20.000000000 +0000
+++ Python-2.7.11/Tools/gdb/libpython.py	2015-12-13 10:01:17.632022112 +0000
@@ -130,6 +130,24 @@ class TruncatedStringIO(object):
     def getvalue(self):
         return self._val
 
