summaryrefslogtreecommitdiff
path: root/js/src/shell/js-gdb.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/shell/js-gdb.py.in')
-rw-r--r--js/src/shell/js-gdb.py.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/shell/js-gdb.py.in b/js/src/shell/js-gdb.py.in
new file mode 100644
index 0000000000..16199bb4cc
--- /dev/null
+++ b/js/src/shell/js-gdb.py.in
@@ -0,0 +1,11 @@
+""" GDB Python customization auto-loader for js shell """
+#filter substitution
+
+import os.path
+sys.path[0:0] = [os.path.join('@topsrcdir@', 'gdb')]
+
+import mozilla.autoload
+mozilla.autoload.register(gdb.current_objfile())
+
+import mozilla.asmjs
+mozilla.asmjs.install()