* src/.gdbinit (Lisp_Object_Printer.to_string):
Explicitly convert integer val to 'int', so that
older GDBs do not complain about the conversion.
* src/lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]:
Give the struct a tag, so that older GDB pretty-printers have a
tag to hang their hat on.
# pretty-printing could be fancier.
if not val:
return "XIL(0)" # Easier to read than "XIL(0x0)".
- return "XIL(0x%x)" % val
+ return "XIL(0x%x)" % int(val)
def build_pretty_printer ():
pp = Emacs_Pretty_Printers ("Emacs")
#ifdef CHECK_LISP_OBJECT_TYPE
-typedef struct { EMACS_INT i; } Lisp_Object;
+typedef struct Lisp_Object { EMACS_INT i; } Lisp_Object;
#define LISP_INITIALLY(i) {i}