summaryrefslogtreecommitdiff
path: root/deps/v8/tools/gdbinit
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2021-03-12 08:24:20 +0100
committerMichaël Zasso <targos@protonmail.com>2021-03-15 15:54:50 +0100
commit732ad99e47bae5deffa3a22d2ebe5500284106f0 (patch)
tree759a6b072accf188f03c74a84e8256fe92f1925c /deps/v8/tools/gdbinit
parent802b3e7cf9a5074a72bec75cf1c46758b81e04b1 (diff)
downloadnode-new-732ad99e47bae5deffa3a22d2ebe5500284106f0.tar.gz
deps: update V8 to 9.0.257.11
PR-URL: https://github.com/nodejs/node/pull/37587 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/tools/gdbinit')
-rw-r--r--deps/v8/tools/gdbinit27
1 files changed, 18 insertions, 9 deletions
diff --git a/deps/v8/tools/gdbinit b/deps/v8/tools/gdbinit
index f2d4a263cd..b4f85cd396 100644
--- a/deps/v8/tools/gdbinit
+++ b/deps/v8/tools/gdbinit
@@ -38,15 +38,6 @@ Print a v8 Code object from an internal code address
Usage: jco pc
end
-# Print LayoutDescriptor.
-define jld
-call (void) _v8_internal_Print_LayoutDescriptor((void*)($arg0))
-end
-document jld
-Print a v8 LayoutDescriptor object
-Usage: jld tagged_ptr
-end
-
# Print TransitionTree.
define jtt
call (void) _v8_internal_Print_TransitionTree((void*)($arg0))
@@ -86,6 +77,24 @@ Skip the jitted stack on x64 to where we entered JS last.
Usage: jss
end
+# Execute a simulator command.
+python
+import gdb
+
+class SimCommand(gdb.Command):
+ """Sim the current program."""
+
+ def __init__ (self):
+ super (SimCommand, self).__init__ ("sim", gdb.COMMAND_SUPPORT)
+
+ def invoke (self, arg, from_tty):
+ arg_c_string = gdb.Value(arg)
+ cmd_func = gdb.selected_frame().read_var("_v8_internal_Simulator_ExecDebugCommand")
+ cmd_func(arg_c_string)
+
+SimCommand()
+end
+
# Print stack trace with assertion scopes.
define bta
python