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

I have noticed you are trying to use --gdbjit. You need to pass --gdbjit-full to allow backtracing otherwise V8 only emits debug info for code objects with line information (normal JS functions). Which means GDB can't unwind past code stubs. GDB on x64 relies on .eh_frame for stack unwinding.

Maybe we should kill gdbjit_full or make --gdbjit imply --gdbjit_full?

(gdb) b v8::Shell::Print
Breakpoint 1 at 0x96443c: file ../src/d8.cc, line 524.
(gdb) r
Starting program: out/x64.debug/d8 --gdbjit --gdbjit-full test.js
Breakpoint 1, v8::Shell::Print (args=...) at ../src/d8.cc:524
524       Write(args);
(gdb) bt
#0  v8::Shell::Print (args=...) at ../src/d8.cc:524
#1 0x0000000000f8258c in v8::internal::FunctionCallbackArguments::Call (this=0x7fffffffd230, f=0x964430 <v8::Shell::Print(v8::FunctionCallbackInfo<v8::Value> const&)>) at ../src/arguments.cc:33 #2 0x0000000000a0a0a0 in v8::internal::HandleApiCallHelper<false> (isolate=0x220f910, args=...) at ../src/builtins.cc:1077 #3 0x0000000000a12873 in v8::internal::Builtin_Impl_HandleApiCall (args=..., isolate=0x220f910) at ../src/builtins.cc:1100 #4 0x0000000000a0a690 in v8::internal::Builtin_HandleApiCall (args_length=3, args_object=0x7fffffffd438, isolate=0x220f910) at ../src/builtins.cc:1096
#5  0x0000134666807f9b in Stub:CEntryStub ()
#6  0x000013466685894a in test.js () at test.js:1
#7  0x000013466682e140 in Builtin:A builtin from the snapshot ()
#8  0x0000134666816811 in Stub:JSEntryStub ()
#9 0x0000000000adb904 in v8::internal::Invoke (is_construct=false, function=..., receiver=..., argc=0, args=0x0) at ../src/execution.cc:128 #10 0x0000000000adb077 in v8::internal::Execution::Call (isolate=0x220f910, callable=..., receiver=..., argc=0, argv=0x0, convert_receiver=false) at ../src/execution.cc:179 #11 0x0000000000983f3b in v8::Script::Run (this=0x22c5318) at ../src/api.cc:1512 #12 0x0000000000961168 in v8::Shell::ExecuteString (isolate=0x220f910, source=..., name=..., print_result=false, report_exceptions=true, source_type=v8::Shell::SCRIPT) at ../src/d8.cc:297 #13 0x00000000009688d7 in v8::SourceGroup::Execute (this=0x220e018, isolate=0x220f910) at ../src/d8.cc:1235 #14 0x00000000009697ca in v8::Shell::RunMain (isolate=0x220f910, argc=4, argv=0x7fffffffdfc8) at ../src/d8.cc:1479 #15 0x0000000000969cae in v8::Shell::Main (argc=4, argv=0x7fffffffdfc8) at ../src/d8.cc:1668 #16 0x0000000000970702 in main (argc=4, argv=0x7fffffffdfc8) at ../src/d8.cc:1704
(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