A newline in lineno output breaks pyframe output.
diff --git a/Misc/gdbinit b/Misc/gdbinit
index 275df10..9484b51 100644
--- a/Misc/gdbinit
+++ b/Misc/gdbinit
@@ -66,7 +66,7 @@
         set $__p = $__p + 1
       end
     end
-    printf "%d\n", $__li
+    printf "%d", $__li
 end
 
 # print the current frame - verbose