[erlang-questions] printing of Eterm's from gdb

Joel Reymont joelr1@REDACTED
Sun Aug 31 10:48:09 CEST 2008

How can I print out Eterm's from within gdb?

(gdb) where
#0  size_object (obj=4380267240) at beam/copy.c:157

(gdb) p obj
$8 = 4380267240

(gdb) p erts_printf_eterm_func
$6 = (int (*)(fmtfn_t, void *, long unsigned int, long int))  
0x100059760 <erts_printf_term>

(gdb) p erts_printf
$7 = {int (const char *)} 0x100132d90 <erts_printf>

	Thanks, Joel


More information about the erlang-questions mailing list