Skip to content
Prev 16772 / 63424 Next

Viewing R objects in gdb

On Wed, 29 Jun 2005, Duncan Murdoch wrote:

            
The type fiels it in the sxpinfo part of the header; I think either

   ((VECSEXP)$a->u.listsxp.tagval->u.symsxp.pname)->sxpinfo.type

or

   $a->u.listsxp.tagval->u.symsxp.pname->sxpinfo.type

will give you that.

It is probably possible to do something like write a file of gdb
macros, run the C pre-processor over it to get the expnansions, and
load that into gdb. Not that I've tried...

luke