changeset 1943:80482f2d54bf

* .gdbinit (xprocess): New command.
author Jim Blandy <jimb@redhat.com>
date Tue, 23 Feb 1993 14:14:19 +0000
parents b403b27bc31c
children 687179cefbe0
files src/.gdbinit
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/.gdbinit	Tue Feb 23 14:13:27 1993 +0000
+++ b/src/.gdbinit	Tue Feb 23 14:14:19 1993 +0000
@@ -137,6 +137,15 @@
 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 *$