define xsymbol
print (struct Lisp_Symbol *) ((((int) $) & $valmask) | gdb_data_seg_bits)
-set $xsymbol_name = ((struct Lisp_String *)(($->xname & $valmask) | gdb_data_seg_bits))
-output ($xsymbol_name->data[0])@($xsymbol_name->size_byte < 0 ? $xsymbol_name->size : $xsymbol_name->size_byte)
-echo \n
+xprintsym $
end
document xsymbol
Print the name and address of the symbol $.
define xprintsym
set $sym = (struct Lisp_Symbol *) ((((int) $arg0) & $valmask) | gdb_data_seg_bits)
- output (char*)$sym->name->data
+ set $sym_name = ((struct Lisp_String *)(($sym->xname & $valmask) | gdb_data_seg_bits))
+ output ($sym_name->data[0])@($sym_name->size_byte < 0 ? $sym_name->size : $sym_name->size_byte)
echo \n
end
document xprintsym
+2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
+
+ * .gdbinit (xprintsym): Use the new `xname' field.
+ (xsymbol): Use it.
+
2002-06-22 Jason Rumney <jasonr@gnu.org>
* w32fns.c (file_dialog_callback): New function.
(do_window_update): Call XClearWindow before calling expose_frame.
(make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
FRAME_FOREGROUND_PIXEL of frame.
-
+
* macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
test Mac command key as <ALT> key.
Remove function_key_possible and key_translation_possible, replaced
by checking `keytran_start < t'.
- * .gdbinit (xsymbol): Use the name `xname' field.
+ * .gdbinit (xsymbol): Use the new `xname' field.
2002-06-17 Andrew Choi <akochoi@shaw.ca>