>>>> On Wed, 25 Feb 2009 12:27:45 +0900, "Stephen J.
Turnbull" <stephen(a)xemacs.org> said:
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
Thanks. Here's the result of a few such calls that with any luck are
the relevant ones.
(gdb) pobj 140737322320744
$4 = (struct Lisp_Compiled_Function *) 0x7ffff61a8368
$5 = {lheader = {type = 10, mark = 0, c_readonly = 0, lisp_readonly = 0},
stack_depth = 4, specpdl_depth = 3, flags = {documentationp = 0,
interactivep = 0, domainp = 0, ebolified = 0},
instructions = 140737328059664, constants = 140737297954064,
arglist = 10251536, doc_and_interactive = 140737341486176}
(gdb) pobj 140737328059664
$7 = (struct Lisp_Opaque *) 0x7ffff6721510
$8 = {header = {lheader = {type = 22, mark = 0, c_readonly = 0,
lisp_readonly = 0}, next = 0x7ffff4cc93e0, uid = 33321, free = 0},
size = 16, data = {{...}}}
(gdb) pobj 140737297954064
$9 = (struct Lisp_Vector *) 0x7ffff4a6b510
$10 = {header = {lheader = {type = 7, mark = 0, c_readonly = 0,
lisp_readonly = 0}, next = 0x7ffff4a63940, uid = 33312, free = 0},
size = 6, contents = {140737341474848}}
Vector of length 6
(gdb) pobj 140737341486176
$11 = (struct Lisp_Symbol *) 0x7ffff73ef460
$12 = {lheader = {type = 4, mark = 0, c_readonly = 0, lisp_readonly = 0},
next = 0x0, name = 0x7ffff75c6540, value = 140737341486176,
function = 140737341026792, plist = 140737341486176}
Symbol name: nil
(gdb)
--
Dave Goldberg
Associate Department Head, G06A: Advanced Technical Computing Center
The MITRE Corporation \ MS K331 \ 202 Burlington Rd. \ Bedford, MA 01730
dsg(a)mitre.org \ 781-271-3887 (W) \ 781-439-7875 (M)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta