]> code.delx.au - gnu-emacs/blobdiff - src/.gdbinit
(change_frame_size): Handle FRAME_MENU_BAR_LINES.
[gnu-emacs] / src / .gdbinit
index f75d7532a7f5d5935278084d94743c910216c7ce..7045c032e01793d06c30311cabe3dca1f60d53ff 100644 (file)
@@ -12,6 +12,14 @@ end
 # machine-description files.
 set $data_seg_bits = 0
 
+define mips
+set $data_seg_bits = 0x10000000
+end
+document mips
+Set up the xfoo macros to deal with the MIPS processor.
+Specifically, this sets $data_seg_bits to the right thing.
+end
+
 define xtype
 output (enum Lisp_Type) (($ >> 24) & 0x7f)
 echo \n
@@ -129,13 +137,31 @@ 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 xscrollbar
+print (struct scrollbar *) (($ & 0x00ffffff) | $data_seg_bits)
+output *$
+echo \n
+end
+document xsubr
+Print $ as a scrollbar pointer.
+end
+
 set print pretty on
 
 unset environment TERMCAP
 unset environment TERM
 echo TERMCAP and TERM environment variables unset.\n
 show environment DISPLAY
-set args -q
+set args -q -geometry +0+0
 
 # Don't let abort actually run, as it will make
 # stdio stop working and therefore the `pr' command below as well.