Comment #4 on 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

yiqian@yiqian-intel:~$ gdb /home/yiqian/liyingworkspace/v8/out/x64.debug/shell
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/yiqian/liyingworkspace/v8/out/x64.debug/shell...done.
(gdb) set args --gdbjit
(gdb) b Print
Breakpoint 1 at 0x9ca09b: file ../samples/shell.cc, line 143.
(gdb) r
Starting program: /home/yiqian/liyingworkspace/v8/out/x64.debug/shell --gdbjit
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6dcd700 (LWP 4303)]
[New Thread 0x7ffff65cc700 (LWP 4304)]
[New Thread 0x7ffff5dcb700 (LWP 4305)]
[New Thread 0x7ffff55ca700 (LWP 4306)]
[New Thread 0x7ffff4dc9700 (LWP 4307)]
V8 version 3.32.0 (candidate) [sample shell]
print("hello")

Breakpoint 1, Print (args=...) at ../samples/shell.cc:143
143       bool first = true;
(gdb) bt
#0  Print (args=...) at ../samples/shell.cc:143
#1  0x0000000000e83d3b in v8::internal::FunctionCallbackArguments::Call (
    this=0x7fffffffd3d0,
    f=0x9ca08f <Print(v8::FunctionCallbackInfo<v8::Value> const&)>)
    at ../src/arguments.cc:33
#2 0x0000000000a456b6 in v8::internal::HandleApiCallHelper<false> (args=...,
    isolate=0x2327280) at ../src/builtins.cc:1139
#3 0x0000000000a4039f in v8::internal::Builtin_Impl_HandleApiCall (args=...,
    isolate=0x2327280) at ../src/builtins.cc:1156
#4 0x0000000000a40365 in v8::internal::Builtin_HandleApiCall (args_length=3, args_object=0x7fffffffd518, isolate=0x2327280) at ../src/builtins.cc:1155
#5  0x00001d32e54071bb in ?? ()
#6  0x00007fffffffd508 in ?? ()
#7  0x00001d32e5407101 in ?? ()
#8  0x00007fffffffd4e0 in ?? ()
#9  0x00007fffffffd540 in ?? ()
#10 0x00001d32e546612a in ?? ()
#11 0x00001562cb3d9819 in ?? ()
#12 0x00003e275792d1b1 in ?? ()
#13 0x00001562cb3d8ec1 in ?? ()
#14 0x00001562cb3d9819 in ?? ()
#15 0x00001562cb304121 in ?? ()
#16 0x00001562cb3dbb09 in ?? ()
---Type <return> to continue, or q <return> to quit---
#17 0x00001562cb396261 in ?? ()
#18 0x00007fffffffd578 in ?? ()
#19 0x00001d32e5437960 in ?? ()
#20 0x00001562cb3d8ec1 in ?? ()
#21 0x00001562cb3dbb09 in ?? ()
#22 0x00001d32e54378a1 in ?? ()
#23 0x0000000800000000 in ?? ()
#24 0x0000000000000000 in ?? ()
(gdb)

--
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