Goldberg, David S. writes:
(gdb) ldp (Lisp_Object) 140737322320744
I think this actually takes a Lisp expression, such as a symbol (eg,
"codepoint" from the backtrace produced by "lbt").
To print a Lisp_Object whose C address you know as a C struct, use
"pobj". I think you don't need the cast. So
(gdb) pobj 140737322320744
should give you something sensible. If pobj errors because
"Lisp_Type_Char" is undefined, you've been bitten by a GCC bug-or-
optimization-YMMV. In src/.gdbinit in the build directory, near the
definition
set $Lisp_Type_Int = -2
add the definition
set $Lisp_Type_Char = 2
and do a global substitution of "$Lisp_Type_Char" for
"Lisp_Type_Char". Then "source .gdbinit" (you'll need to give
the
full path to .gdbinit from gdb's current directory; if you started in
the src/ directory of the build tree just ".gdbinit" should work
though), and pobj should work.
I need to do day job work and will look at the traces later. In the
meantime, that may help get a little more information.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta