annotate src/.gdbinit @ 10299:0de933eb95a2

Adapt to new Lisp_Object format. (xvectype, xmisctype): New commands. (xtype): Print the misc or vectorlike subtype too.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Jan 1995 05:04:34 +0000
parents def3ab3a6f01
children a76a89bb6c57
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 # Set up something to print out s-expressions.
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 define pr
6534
19aacadabdc0 (pr): Use debug_print.
Richard M. Stallman <rms@gnu.org>
parents: 5403
diff changeset
3 set debug_print ($)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 echo \n
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 document pr
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 Print the emacs s-expression which is $.
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 Works only when an inferior emacs is executing.
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
11 # Set this to the same thing as the DATA_SEG_BITS macro in your
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
12 # machine-description files.
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
13 set $data_seg_bits = 0
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
14
1551
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
15 define mips
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
16 set $data_seg_bits = 0x10000000
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
17 end
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
18 document mips
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
19 Set up the xfoo macros to deal with the MIPS processor.
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
20 Specifically, this sets $data_seg_bits to the right thing.
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
21 end
1f7d20c707c0 Added `mips' command.
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
22
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 define xtype
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
24 output (enum Lisp_Type) (($ >> 28) & 0x7)
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
25 echo \n
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
26 output ((($ >> 28) & 0x7) == Lisp_Misc ? (enum Lisp_Misc_Type) (((struct Lisp_Free *) (($ & 0x0fffffff) | $data_seg_bits))->type) : (($ >> 28) & 0x7) == Lisp_Vectorlike ? ($size = ((struct Lisp_Vector *) (($ & 0x0fffffff) | $data_seg_bits))->size, (enum pvec_type) (($size & PVEC_FLAG) ? $size & PVEC_TYPE_MASK : 0)) : 0)
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
27 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
29 document xtype
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
30 Print the type of $, assuming it is an Emacs Lisp value.
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
31 If the first type printed is Lisp_Vector or Lisp_Misc,
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
32 the second line gives the more precise type.
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
33 Otherwise the second line doesn't mean anything.
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
34 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
35
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
36 define xvectype
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
37 set $size = ((struct Lisp_Vector *) (($ & 0x0fffffff) | $data_seg_bits))->size
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
38 output (enum pvec_type) (($size & PVEC_FLAG) ? $size & PVEC_TYPE_MASK : 0)
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
39 echo \n
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
40 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
41 document xvectype
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
42 Print the vector subtype of $, assuming it is a vector or pseudovector.
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
43 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
44
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
45 define xmisctype
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
46 output (enum Lisp_Misc_Type) (((struct Lisp_Free *) (($ & 0x0fffffff) | $data_seg_bits))->type)
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
47 echo \n
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
48 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
49 document xmisctype
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
50 Print the specific type of $, assuming it is some misc type.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
51 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53 define xint
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
54 print (($ & 0x00ffffff) << 4) >> 4
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
56 document xint
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
57 Print $, assuming it is an Emacs Lisp integer. This gets the sign right.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
58 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 define xptr
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
61 print (void *) (($ & 0x0fffffff) | $data_seg_bits)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
63 document xptr
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
64 Print the pointer portion of $, assuming it is an Emacs Lisp value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
65 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
66
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
67 define xwindow
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
68 print (struct window *) (($ & 0x0fffffff) | $data_seg_bits)
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
69 printf "%dx%d+%d+%d\n", $->width, $->height, $->left, $->top
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
70 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
71 document xwindow
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
72 Print $ as a window pointer, assuming it is an Emacs Lisp window value.
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
73 Print the window's position as "WIDTHxHEIGHT+LEFT+TOP".
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
74 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
75
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
76 define xmarker
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
77 print (struct Lisp_Marker *) (($ & 0x0fffffff) | $data_seg_bits)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
78 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
79 document xmarker
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
80 Print $ as a marker pointer, assuming it is an Emacs Lisp marker value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
81 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
82
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
83 define xbuffer
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
84 print (struct buffer *) (($ & 0x0fffffff) | $data_seg_bits)
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
85 output &((struct Lisp_String *) ((($->name) & 0x0fffffff) | $data_seg_bits))->data
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
86 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
87 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
88 document xbuffer
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
89 Set $ as a buffer pointer, assuming it is an Emacs Lisp buffer value.
727
540b047ece4d *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 648
diff changeset
90 Print the name of the buffer.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
91 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
92
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
93 define xsymbol
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
94 print (struct Lisp_Symbol *) ((((int) $) & 0x0fffffff) | $data_seg_bits)
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
95 output &$->name->data
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
96 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
97 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
98 document xsymbol
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
99 Print the name and address of the symbol $.
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
100 This command assumes that $ is an Emacs Lisp symbol value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
101 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103 define xstring
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
104 print (struct Lisp_String *) (($ & 0x0fffffff) | $data_seg_bits)
7961
f3e1a5c7bba1 (xsymbol): Cast $ to int.
Richard M. Stallman <rms@gnu.org>
parents: 6534
diff changeset
105 output ($->size > 1000) ? 0 : ($->data[0])@($->size)
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
106 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
107 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
108 document xstring
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
109 Print the contents and address of the string $.
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
110 This command assumes that $ is an Emacs Lisp string value.
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
111 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
112
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
113 define xvector
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
114 print (struct Lisp_Vector *) (($ & 0x0fffffff) | $data_seg_bits)
7961
f3e1a5c7bba1 (xsymbol): Cast $ to int.
Richard M. Stallman <rms@gnu.org>
parents: 6534
diff changeset
115 output ($->size > 50) ? 0 : ($->contents[0])@($->size)
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
116 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
117 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
118 document xvector
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
119 Print the contents and address of the vector $.
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
120 This command assumes that $ is an Emacs Lisp vector value.
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
121 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
122
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
123 define xframe
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
124 print (struct frame *) (($ & 0x0fffffff) | $data_seg_bits)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125 end
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
126 document xframe
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
127 Print $ as a frame pointer, assuming it is an Emacs Lisp frame value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
128 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
129
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
130 define xcons
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
131 print (struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits)
1069
ee559fe0f1ab *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 1039
diff changeset
132 output *$
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
133 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
134 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
135 document xcons
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
136 Print the contents of $, assuming it is an Emacs Lisp cons.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
137 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
138
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
139 define xcar
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
140 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits))->car : 0)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
141 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
142 document xcar
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
143 Print the car of $, assuming it is an Emacs Lisp pair.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
144 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
145
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
146 define xcdr
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
147 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits))->cdr : 0)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
148 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
149 document xcdr
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
150 Print the cdr of $, assuming it is an Emacs Lisp pair.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
151 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
152
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
153 define xsubr
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
154 print (struct Lisp_Subr *) (($ & 0x0fffffff) | $data_seg_bits)
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
155 output *$
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
156 echo \n
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
157 end
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
158 document xsubr
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
159 Print the address of the subr which the Lisp_Object $ points to.
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
160 end
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
161
1943
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
162 define xprocess
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
163 print (struct Lisp_Process *) (($ & 0x0fffffff) | $data_seg_bits)
1943
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
164 output *$
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
165 echo \n
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
166 end
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
167 document xprocess
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
168 Print the address of the struct Lisp_process which the Lisp_Object $ points to.
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
169 end
80482f2d54bf * .gdbinit (xprocess): New command.
Jim Blandy <jimb@redhat.com>
parents: 1789
diff changeset
170
4267
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
171 define xfloat
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
172 print ((struct Lisp_Float *) (($ & 0x0fffffff) | $data_seg_bits))->data
4267
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
173 end
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
174 document xfloat
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
175 Print $ assuming it is a lisp floating-point number.
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
176 end
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
177
1789
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
178 define xscrollbar
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
179 print (struct scrollbar *) (($ & 0x0fffffff) | $data_seg_bits)
1789
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
180 output *$
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
181 echo \n
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
182 end
4268
0795ced6013f (xscrollbar): Fix typo specifying doc string.
Richard M. Stallman <rms@gnu.org>
parents: 4267
diff changeset
183 document xscrollbar
1789
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
184 Print $ as a scrollbar pointer.
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
185 end
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
186
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
187 set print pretty on
4267
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
188 set print sevenbit-strings
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
189
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 727
diff changeset
190 show environment DISPLAY
4487
177aaa70734d Don't put -q in args.
Richard M. Stallman <rms@gnu.org>
parents: 4268
diff changeset
191 show environment TERM
177aaa70734d Don't put -q in args.
Richard M. Stallman <rms@gnu.org>
parents: 4268
diff changeset
192 set args -geometry 80x40+0+0
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 727
diff changeset
193
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
194 # Don't let abort actually run, as it will make
2162
1dcc4e12b8dd Doc fix.
Jim Blandy <jimb@redhat.com>
parents: 1943
diff changeset
195 # stdio stop working and therefore the `pr' command above as well.
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
196 break abort
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
197
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
198 # If we are running in synchronous mode, we want a chance to look around
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
199 # before Emacs exits. Perhaps we should put the break somewhere else
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
200 # instead...
8310
def3ab3a6f01 Set the breakpoint in x_error_quitter instead of _XPrintDefaultError.
Richard M. Stallman <rms@gnu.org>
parents: 7962
diff changeset
201 break x_error_quitter
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
202
8310
def3ab3a6f01 Set the breakpoint in x_error_quitter instead of _XPrintDefaultError.
Richard M. Stallman <rms@gnu.org>
parents: 7962
diff changeset
203