Skip to content

Instantly share code, notes, and snippets.

@tromey
tromey / gdb-todo.md
Last active August 7, 2022 16:33
gdb to do
  • Defaults changes

    • set print object on
    • set print pretty on
    • set history save on
    • Enable multi-inferior by default
    • Make a variant of info locals that shows both locals and args
  • Build System

    • Convert gdb to automake
  • init.c is not remade if configure.tgt is changed
@tromey
tromey / line-table.md
Last active August 5, 2017 14:11
line table hacking

First, do a full (not artifact) build with the spidermonkey shell enabled. You'll need this in your .mozconfig:

ac_add_options --enable-js-shell
ac_add_options --enable-debug

This takes a while. Once it is finished you can run the shell to verify that the dis function works:

$ ./obj-x86_64-pc-linux-gnu/dist/bin/js
js> dis(() => {})
flags: LAMBDA ARROW