(update_frame): Fix previous change: unconditionally bzero at the end.
[bpt/emacs.git] / src / .gdbinit
index 61d56af..cc59567 100644 (file)
@@ -1,6 +1,6 @@
 # Set up something to print out s-expressions.
 define pr
-set Fprin1 ($, Qexternal_debugging_output)
+set debug_print ($)
 echo \n
 end
 document pr
@@ -137,25 +137,40 @@ document xsubr
 Print the address of the subr which the Lisp_Object $ points to.
 end
 
+define xprocess
+print (struct Lisp_Process *) (($ & 0x00ffffff) | $data_seg_bits)
+output *$
+echo \n
+end
+document xprocess
+Print the address of the struct Lisp_process which the Lisp_Object $ points to.
+end
+
+define xfloat
+print ((struct Lisp_Float *) (($ & 0x00ffffff) | $data_seg_bits))->data
+end
+document xfloat
+Print $ assuming it is a lisp floating-point number.
+end
+
 define xscrollbar
 print (struct scrollbar *) (($ & 0x00ffffff) | $data_seg_bits)
 output *$
 echo \n
 end
-document xsubr
+document xscrollbar
 Print $ as a scrollbar pointer.
 end
 
 set print pretty on
+set print sevenbit-strings
 
-unset environment TERMCAP
-unset environment TERM
-echo TERMCAP and TERM environment variables unset.\n
 show environment DISPLAY
-set args -q -geometry +0+0
+show environment TERM
+set args -geometry 80x40+0+0
 
 # Don't let abort actually run, as it will make
-# stdio stop working and therefore the `pr' command below as well.
+# stdio stop working and therefore the `pr' command above as well.
 break abort
 
 # If we are running in synchronous mode, we want a chance to look around