From gumpleon at gmail.com  Tue May  6 09:02:35 2008
From: gumpleon at gmail.com (pseudo)
Date: Tue, 6 May 2008 00:02:35 -0700
Subject: [Rd] a R_PV problem
Message-ID: <bc33365a0805060002w316d0c92mf2598adfd076ef07@mail.gmail.com>

Dear all,

When using gdb to debug my C code, I use R_PV to show the content of
SEXP variables:

  SEXP sexp; // it is a data.frame
  SEXP colNames = getAttrib(sexp, R_NameSymbol);

A strange thing is that after halting the program:

  (gdb) p R_PV(colNames)

does not show the content of colNames. I am positive my code is right
because if I insert "PrintValue(colNames);" in the c code, it will
print the right value. My debug result shows that the variable
"colNames" failed the "isObject" call. I am not sure whether this is a
new feature or bug. Anyone can help?

Thanks,

Gang Liang



[Rd] a R_PV problem
pseudo