comparison src/.gdbinit @ 10483:727cd2061e2a

(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree, xobjfwd, xoverlay, xwindow_configuration): New macros.
author Karl Heuer <kwzh@gnu.org>
date Thu, 19 Jan 1995 21:57:20 +0000
parents 597742bda8b6
children 70bd087c47a9
comparison
equal deleted inserted replaced
10482:a15a058ec779 10483:727cd2061e2a
78 end 78 end
79 document xmarker 79 document xmarker
80 Print $ as a marker pointer, assuming it is an Emacs Lisp marker value. 80 Print $ as a marker pointer, assuming it is an Emacs Lisp marker value.
81 end 81 end
82 82
83 define xoverlay
84 print (struct Lisp_Overlay *) (($ & 0x0fffffff) | $data_seg_bits)
85 end
86 document xoverlay
87 Print $ as a overlay pointer, assuming it is an Emacs Lisp overlay value.
88 end
89
90 define xmiscfree
91 print (struct Lisp_Free *) (($ & 0x0fffffff) | $data_seg_bits)
92 end
93 document xmiscfree
94 Print $ as a misc free-cell pointer, assuming it is an Emacs Lisp Misc value.
95 end
96
97 define xintfwd
98 print (struct Lisp_Intfwd *) (($ & 0x0fffffff) | $data_seg_bits)
99 end
100 document xintfwd
101 Print $ as an integer forwarding pointer, assuming it is an Emacs Lisp Misc value.
102 end
103
104 define xboolfwd
105 print (struct Lisp_Boolfwd *) (($ & 0x0fffffff) | $data_seg_bits)
106 end
107 document xboolfwd
108 Print $ as a boolean forwarding pointer, assuming it is an Emacs Lisp Misc value.
109 end
110
111 define xobjfwd
112 print (struct Lisp_Objfwd *) (($ & 0x0fffffff) | $data_seg_bits)
113 end
114 document xobjfwd
115 Print $ as an object forwarding pointer, assuming it is an Emacs Lisp Misc value.
116 end
117
118 define xbuffer_objfwd
119 print (struct Lisp_Buffer_Objfwd *) (($ & 0x0fffffff) | $data_seg_bits)
120 end
121 document xbuffer_objfwd
122 Print $ as a buffer-local object forwarding pointer, assuming it is an Emacs Lisp Misc value.
123 end
124
125 define xbuffer_local_value
126 print (struct Lisp_Buffer_Local_Value *) (($ & 0x0fffffff) | $data_seg_bits)
127 end
128 document xbuffer_local_value
129 Print $ as a buffer-local-value pointer, assuming it is an Emacs Lisp Misc value.
130 end
131
83 define xbuffer 132 define xbuffer
84 print (struct buffer *) (($ & 0x0fffffff) | $data_seg_bits) 133 print (struct buffer *) (($ & 0x0fffffff) | $data_seg_bits)
85 output &((struct Lisp_String *) ((($->name) & 0x0fffffff) | $data_seg_bits))->data 134 output &((struct Lisp_String *) ((($->name) & 0x0fffffff) | $data_seg_bits))->data
86 echo \n 135 echo \n
87 end 136 end
123 define xframe 172 define xframe
124 print (struct frame *) (($ & 0x0fffffff) | $data_seg_bits) 173 print (struct frame *) (($ & 0x0fffffff) | $data_seg_bits)
125 end 174 end
126 document xframe 175 document xframe
127 Print $ as a frame pointer, assuming it is an Emacs Lisp frame value. 176 Print $ as a frame pointer, assuming it is an Emacs Lisp frame value.
177 end
178
179 define xwindow_configuration
180 print (struct save_window_data *) (($ & 0x0fffffff) | $data_seg_bits)
181 end
182 document xwindow_configuration
183 Print $ as a window configuration pointer, assuming it is an Emacs Lisp window configuration value.
184 end
185
186 define xcompiled
187 print (struct Lisp_Vector *) (($ & 0x0fffffff) | $data_seg_bits)
188 output ($->contents[0])@($->size & 0xff)
189 end
190 document xcompiled
191 Print $ as a compiled function pointer, assuming it is an Emacs Lisp compiled value.
128 end 192 end
129 193
130 define xcons 194 define xcons
131 print (struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits) 195 print (struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits)
132 output *$ 196 output *$