Status: New
Owner: ----

New issue 3851 by [email protected]: Can not print stack trace info when debug V8 sample code shell.cc with GDB
https://code.google.com/p/v8/issues/detail?id=3851

Build V8 with make gdbjit=on
Compile shell.cc(http://code.google.com/p/v8/source/browse/trunk/samples/shell.cc) with g++ -g -I. shell.cc -o shell -Wl,--start-group out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -pthread
Run shell with ./shell --gdbjit
GDB attach to pid
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the shell process
liying@liying-intel:~/liyingworkspace/v8$ ./shell --gdbjit
V8 version 3.32.0 (candidate) [sample shell]
print("hello")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the GDB process
Breakpoint 3, Print (args=...) at shell.cc:147
147       bool first = true;
(gdb) bt
#0  Print (args=...) at shell.cc:147
#1 0x0000000000773a80 in v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) () #2 0x0000000000442f8e in v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) ()
#3  0x00000e8724e071bb in ?? ()
#4  0x00007fff0911c800 in ?? ()
#5  0x00000e8724e07101 in ?? ()
#6  0x00007fff0911c7c0 in ?? ()
#7  0x00007fff0911c820 in ?? ()
#8  0x00000e8724e665aa in ?? ()
#9  0x000035c808dd7cc9 in ?? ()
#10 0x00003e8596c2d189 in ?? ()
#11 0x000035c808dd7381 in ?? ()
#12 0x000035c808dd7cc9 in ?? ()
#13 0x000035c808d04121 in ?? ()
#14 0x000035c808dda739 in ?? ()
#15 0x000035c808d94731 in ?? ()
#16 0x00007fff0911c858 in ?? ()
#17 0x00000e8724e377c0 in ?? ()
#18 0x000035c808dd7381 in ?? ()
#19 0x000035c808dda739 in ?? ()
#20 0x00000e8724e37701 in ?? ()
---Type <return> to continue, or q <return> to quit---
#21 0x0000000800000000 in ?? ()
#22 0x0000000000000000 in ?? ()
(gdb)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks a lot.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" 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.

Reply via email to