comparison etc/DEBUG @ 90261:7beb78bc1f8e

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-97 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 616-696) - Add lisp/mh-e/.arch-inventory - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: lisp/smerge-mode.el: Add 'tools' to file keywords. - lisp/gnus/ChangeLog: Remove duplicate entry * gnus--rel--5.10 (patch 147-181) - Update from CVS - Merge from emacs--cvs-trunk--0 - Update from CVS: lisp/mml.el (mml-preview): Doc fix. - Update from CVS: texi/message.texi: Fix default values. - Update from CVS: texi/gnus.texi (RSS): Addition.
author Miles Bader <miles@gnu.org>
date Mon, 16 Jan 2006 08:37:27 +0000
parents 2d92f5c9d6ae c0eb744f79f7
children c5406394f567
comparison
equal deleted inserted replaced
90260:0ca0d9181b5e 90261:7beb78bc1f8e
156 we want the address of the l-value expression near the bottom of 156 we want the address of the l-value expression near the bottom of
157 `add_command_key' from keyboard.c: 157 `add_command_key' from keyboard.c:
158 158
159 XVECTOR (this_command_keys)->contents[this_command_key_count++] = key; 159 XVECTOR (this_command_keys)->contents[this_command_key_count++] = key;
160 160
161 XVECTOR is a macro, and therefore GDB does not know about it. 161 XVECTOR is a macro, so GDB only knows about it if Emacs has been compiled with
162 GDB cannot evaluate "p XVECTOR (this_command_keys)". 162 preprocessor macro information. GCC provides this if you specify the options
163 163 `-gdwarf-2' and `-g3'. In this case, GDB can evaluate expressions like
164 However, you can use the xvector command in GDB to get the same 164 "p XVECTOR (this_command_keys)".
165 result. Here is how: 165
166 When this information isn't available, you can use the xvector command in GDB
167 to get the same result. Here is how:
166 168
167 (gdb) p this_command_keys 169 (gdb) p this_command_keys
168 $1 = 1078005760 170 $1 = 1078005760
169 (gdb) xvector 171 (gdb) xvector
170 $2 = (struct Lisp_Vector *) 0x411000 172 $2 = (struct Lisp_Vector *) 0x411000