Index: tools/gdbinit |
diff --git a/tools/gdbinit b/tools/gdbinit |
index 5e6af9d6a89ed00d9b977582a3d44b8743e1fe10..0f8704a27cb12b8e0363ecf19dc32f3549f89dae 100644 |
--- a/tools/gdbinit |
+++ b/tools/gdbinit |
@@ -56,5 +56,17 @@ Print the current JavaScript stack trace |
Usage: jst |
end |
+# Skip the JavaScript stack. |
+define jss |
+set $js_entry_sp=v8::internal::Isolate::Current()->thread_local_top()->js_entry_sp_ |
+set $rbp=*(void**)$js_entry_sp |
+set $rsp=$js_entry_sp + 2*sizeof(void*) |
+set $pc=*(void**)($js_entry_sp+sizeof(void*)) |
+end |
+document jss |
+Skip the jitted stack on x64 to where we entered JS last. |
+Usage: jss |
+end |
+ |
set disassembly-flavor intel |
set disable-randomization off |