  
      def current_line_num(self):
          '''Get current line number as an integer (1-based)
-@@ -907,7 +910,7 @@ class PyFrameObjectPtr(PyObjectPtr):
+@@ -943,7 +946,7 @@ class PyFrameObjectPtr(PyObjectPtr):
                  out.write(', ')
              first = False
  

diff -up Python-2.7.3/Tools/gdb/libpython.py.fix-fake-repr-in-gdb-hooks Python-2.7.3/Tools/gdb/libpython.py
--- Python-2.7.3/Tools/gdb/libpython.py.fix-fake-repr-in-gdb-hooks	2013-02-19 17:21:33.541181366 -0500
+++ Python-2.7.3/Tools/gdb/libpython.py	2013-02-19 17:21:42.090180782 -0500
@@ -105,6 +105,24 @@ class TruncatedStringIO(object):
     def getvalue(self):
         return self._val
 

 
 class PyFrameObjectPtr(PyObjectPtr):
     _typename = 'PyFrameObject'
@@ -892,7 +892,10 @@ class PyFrameObjectPtr(PyObjectPtr):
         '''Get the path of the current Python source file, as a string'''
         if self.is_optimized_out():
             return '(frame information optimized out)'
