aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-01-19 21:57:20 +0000
committerKarl Heuer1995-01-19 21:57:20 +0000
commita6a3acf0547ea14bdd57230ba9d98e59f030b8c7 (patch)
tree59ceae68de6c5924cd89839cbff07bdbc498d5c4 /src
parent00d76abc821d050efa5bf10483460611f51fd504 (diff)
downloademacs-a6a3acf0547ea14bdd57230ba9d98e59f030b8c7.tar.gz
emacs-a6a3acf0547ea14bdd57230ba9d98e59f030b8c7.zip
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
xobjfwd, xoverlay, xwindow_configuration): New macros.
Diffstat (limited to 'src')
-rw-r--r--src/.gdbinit64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 129e0f38ce3..2b5d9bade63 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -80,6 +80,55 @@ document xmarker
80Print $ as a marker pointer, assuming it is an Emacs Lisp marker value. 80Print $ as a marker pointer, assuming it is an Emacs Lisp marker value.
81end 81end
82 82
83define xoverlay
84print (struct Lisp_Overlay *) (($ & 0x0fffffff) | $data_seg_bits)
85end
86document xoverlay
87Print $ as a overlay pointer, assuming it is an Emacs Lisp overlay value.
88end
89
90define xmiscfree
91print (struct Lisp_Free *) (($ & 0x0fffffff) | $data_seg_bits)
92end
93document xmiscfree
94Print $ as a misc free-cell pointer, assuming it is an Emacs Lisp Misc value.
95end
96
97define xintfwd
98print (struct Lisp_Intfwd *) (($ & 0x0fffffff) | $data_seg_bits)
99end
100document xintfwd
101Print $ as an integer forwarding pointer, assuming it is an Emacs Lisp Misc value.
102end
103
104define xboolfwd
105print (struct Lisp_Boolfwd *) (($ & 0x0fffffff) | $data_seg_bits)
106end
107document xboolfwd
108Print $ as a boolean forwarding pointer, assuming it is an Emacs Lisp Misc value.
109end
110
111define xobjfwd
112print (struct Lisp_Objfwd *) (($ & 0x0fffffff) | $data_seg_bits)
113end
114document xobjfwd
115Print $ as an object forwarding pointer, assuming it is an Emacs Lisp Misc value.
116end
117
118define xbuffer_objfwd
119print (struct Lisp_Buffer_Objfwd *) (($ & 0x0fffffff) | $data_seg_bits)
120end
121document xbuffer_objfwd
122Print $ as a buffer-local object forwarding pointer, assuming it is an Emacs Lisp Misc value.
123end
124
125define xbuffer_local_value
126print (struct Lisp_Buffer_Local_Value *) (($ & 0x0fffffff) | $data_seg_bits)
127end
128document xbuffer_local_value
129Print $ as a buffer-local-value pointer, assuming it is an Emacs Lisp Misc value.
130end
131
83define xbuffer 132define xbuffer
84print (struct buffer *) (($ & 0x0fffffff) | $data_seg_bits) 133print (struct buffer *) (($ & 0x0fffffff) | $data_seg_bits)
85output &((struct Lisp_String *) ((($->name) & 0x0fffffff) | $data_seg_bits))->data 134output &((struct Lisp_String *) ((($->name) & 0x0fffffff) | $data_seg_bits))->data
@@ -127,6 +176,21 @@ document xframe
127Print $ as a frame pointer, assuming it is an Emacs Lisp frame value. 176Print $ as a frame pointer, assuming it is an Emacs Lisp frame value.
128end 177end
129 178
179define xwindow_configuration
180print (struct save_window_data *) (($ & 0x0fffffff) | $data_seg_bits)
181end
182document xwindow_configuration
183Print $ as a window configuration pointer, assuming it is an Emacs Lisp window configuration value.
184end
185
186define xcompiled
187print (struct Lisp_Vector *) (($ & 0x0fffffff) | $data_seg_bits)
188output ($->contents[0])@($->size & 0xff)
189end
190document xcompiled
191Print $ as a compiled function pointer, assuming it is an Emacs Lisp compiled value.
192end
193
130define xcons 194define xcons
131print (struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits) 195print (struct Lisp_Cons *) (($ & 0x0fffffff) | $data_seg_bits)
132output *$ 196output *$