I guess you would have to write custom gdb macros to decode it

See the following examples to print the standard STL containers
http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.01.txt
http://code.google.com/p/chromium/wiki/LinuxDebugging

thanks,
Zaheer

On Fri, Jun 11, 2010 at 8:27 AM, Vitali Lovich <[email protected]> wrote:
> Hey, I'm trying to hack on v8 & I'm trying to figure out how to examine the
> v8 variables.
> For example, I'm trying to figure out some string parameters that are passed
> to compile but they all come up as opaque types & I'm not sure how to
> retrieve the data from them.
> (gdb) p source.val_
> $5 = (v8::String *) 0x8352fb4
> (gdb) p *(source.val_)
> $6 = {<v8::Primitive> = {<v8::Value> = {<v8::Data> = {<No data fields>}, <No
> data fields>}, <No data fields>}, <No data fields>}
> Thanks,
> Vitali
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to