location_ should be of type T**, so you could print *(v8::internal::Script)**0x000055555562ae08 or (assuming the compiler didn't inline the operator*), you could just derefence the handle and print *$2
On Fri, Jan 20, 2017 at 6:25 AM Jason Zoo <[email protected]> wrote: > Hi,I use lldb debug v8 > I'd set a breakpoint at src/parsing/parsing.cc:36 line. And I use `p info` > to debug this ParseInfo type value. I use `p $2` command to see > (v8::internal::Handle<v8::internal::Script>) > type value.But I wonder to know how to get the value of the > (v8::internal::Script) > type . Any idea? > > > (lldb) p info > (v8::internal::ParseInfo *) $0 = 0x00007fffffffc068 > (lldb) p *$0 > (v8::internal::ParseInfo) $1 = { > zone_ = 0x00007fffffffc118 > flags_ = 4241 > source_stream_ = 0x0000000000000000 > source_stream_encoding_ = ONE_BYTE > character_stream_ = 0x0000000000000000 > extension_ = 0x0000000000000000 > compile_options_ = kNoCompileOptions > script_scope_ = 0x000055555563a930 > asm_function_scope_ = 0x0000000000000000 > unicode_cache_ = 0x00005555555e9220 > stack_limit_ = 140737487332792 > hash_seed_ = 896107161 > compiler_hints_ = 0 > start_position_ = 0 > end_position_ = 0 > function_literal_id_ = -1 > max_function_literal_id_ = 1 > isolate_ = 0x00005555555d3270 > shared_ = { > v8::internal::HandleBase = { > location_ = 0x0000000000000000 > } > } > script_ = { > v8::internal::HandleBase = { > location_ = 0x000055555562ae08 > } > } > maybe_outer_scope_info_ = { > location_ = 0x0000000000000000 > } > cached_data_ = 0x0000000000000000 > ast_value_factory_ = 0x00005555556385d0 > function_name_ = 0x0000000000000000 > literal_ = 0x000055555563c388 > } > (lldb) p $0->script_ > (v8::internal::Handle<v8::internal::Script>) $2 = { > v8::internal::HandleBase = { > location_ = 0x000055555562ae08 > } > } > (lldb) p $2 > (v8::internal::Handle<v8::internal::Script>) $2 = { > v8::internal::HandleBase = { > location_ = 0x000055555562ae08 > } > } > > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
