Comment #3 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/ia32.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/ia32.debug/shell...done.
(gdb) set args --gdbjit
(gdb) b Print
Breakpoint 1 at 0x8634fbd: file ../samples/shell.cc, line 143.
(gdb) r
Starting program: /home/yiqian/liyingworkspace/v8/out/ia32.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 0xf7c93b40 (LWP 4362)]
[New Thread 0xf7492b40 (LWP 4363)]
[New Thread 0xf6c91b40 (LWP 4364)]
[New Thread 0xf6490b40 (LWP 4365)]
[New Thread 0xf5c8fb40 (LWP 4366)]
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 0x08ab7de1 in v8::internal::FunctionCallbackArguments::Call (
this=0xffffc8dc,
f=0x8634fb7 <Print(v8::FunctionCallbackInfo<v8::Value> const&)>)
at ../src/arguments.cc:33
#2 0x086abf4a in v8::internal::HandleApiCallHelper<false> (args=...,
isolate=0x9cd3b00) at ../src/builtins.cc:1139
#3 0x086a70b8 in v8::internal::Builtin_Impl_HandleApiCall (args=...,
isolate=0x9cd3b00) at ../src/builtins.cc:1156
#4 0x086a7097 in v8::internal::Builtin_HandleApiCall (args_length=3,
args_object=0xffffc9ac, isolate=0x9cd3b00) at ../src/builtins.cc:1155
#5 0x4660acfc in ?? ()
#6 0x46652e53 in ?? ()
#7 0x46630975 in ?? ()
#8 0x4662c4ea in ?? ()
#9 0x0873dc5b in v8::internal::Invoke (is_construct=false, function=...,
receiver=..., argc=0, args=0x0) at ../src/execution.cc:103
#10 0x0873dfe4 in v8::internal::Execution::Call (isolate=0x9cd3b00,
callable=..., receiver=..., argc=0, argv=0x0, convert_receiver=false)
at ../src/execution.cc:153
#11 0x08650c67 in v8::Script::Run (this=0x9cfd3d8) at ../src/api.cc:1622
#12 0x08635cfb in ExecuteString (isolate=0x9cd3b00, source=..., name=...,
print_result=true, report_exceptions=true) at ../samples/shell.cc:332
---Type <return> to continue, or q <return> to quit---
#13 0x08635be7 in RunShell (context=...) at ../samples/shell.cc:310
#14 0x08634adb in main (argc=1, argv=0xffffce64) at ../samples/shell.cc:99
--
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.