Comment #2 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/arm.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/arm.debug/shell...done.
(gdb) set args --gdbjit
(gdb) b Print
Breakpoint 1 at 0x8598f4d: file ../samples/shell.cc, line 143.
(gdb) r
Starting program: /home/yiqian/liyingworkspace/v8/out/arm.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 9616)]
[New Thread 0xf7492b40 (LWP 9617)]
[New Thread 0xf6c91b40 (LWP 9618)]
[New Thread 0xf6490b40 (LWP 9619)]
[New Thread 0xf5b8eb40 (LWP 9642)]
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 0x08a24a47 in v8::internal::FunctionCallbackArguments::Call (
this=0xffffc5dc,
f=0x8598f47 <Print(v8::FunctionCallbackInfo<v8::Value> const&)>)
at ../src/arguments.cc:33
#2 0x0860d44c in v8::internal::HandleApiCallHelper<false> (args=...,
isolate=0x9c1ead8) at ../src/builtins.cc:1139
#3 0x086085ba in v8::internal::Builtin_Impl_HandleApiCall (args=...,
isolate=0x9c1ead8) at ../src/builtins.cc:1156
#4 0x08608599 in v8::internal::Builtin_HandleApiCall (args_length=3,
args_object=0xf5c8eefc, isolate=0x9c1ead8) at ../src/builtins.cc:1155
#5 0x08a09534 in v8::internal::Simulator::SoftwareInterrupt
(this=0x9c38f50,
instr=0x9c479cc) at ../src/arm/simulator-arm.cc:1876
#6 0x08a0cd31 in v8::internal::Simulator::DecodeType7 (this=0x9c38f50,
instr=0x9c479cc) at ../src/arm/simulator-arm.cc:2994
#7 0x08a0fe13 in v8::internal::Simulator::InstructionDecode
(this=0x9c38f50,
instr=0x9c479cc) at ../src/arm/simulator-arm.cc:3834
#8 0x08a0ff00 in v8::internal::Simulator::Execute (this=0x9c38f50)
at ../src/arm/simulator-arm.cc:3865
#9 0x08a1016a in v8::internal::Simulator::CallInternal (this=0x9c38f50,
entry=0xf5234980 "\360O-\351\020\213", <incomplete sequence \355>)
at ../src/arm/simulator-arm.cc:3919
#10 0x08a105b2 in v8::internal::Simulator::Call (this=0x9c38f50,
---Type <return> to continue, or q <return> to quit---
entry=0xf5234980 "\360O-\351\020\213", <incomplete sequence \355>,
argument_count=5) at ../src/arm/simulator-arm.cc:3970
#11 0x0869f560 in v8::internal::Invoke (is_construct=false, function=...,
receiver=..., argc=0, args=0x0) at ../src/execution.cc:103
#12 0x0869f8ea in v8::internal::Execution::Call (isolate=0x9c1ead8,
callable=..., receiver=..., argc=0, argv=0x0, convert_receiver=false)
at ../src/execution.cc:153
#13 0x085b2845 in v8::Script::Run (this=0x9ccd790) at ../src/api.cc:1622
#14 0x08599c8b in ExecuteString (isolate=0x9c1ead8, source=..., name=...,
print_result=true, report_exceptions=true) at ../samples/shell.cc:332
#15 0x08599b77 in RunShell (context=...) at ../samples/shell.cc:310
#16 0x08598a6b in main (argc=1, argv=0xffffce64) at ../samples/shell.cc:99
(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.