set pagination 0
set backtrace limit 250

# CrashSignature trips up with "thread apply all backtrace" for now.
echo \n\nbacktrace\n\n
backtrace

# Could use "info all-registers" but that spews lots of junk
echo \n\ninfo reg\n\n
info registers

# Dump the disassembly of the crashing instruction and several following instructions.
# ($pc is an alias for $eip or $rip as needed)
echo \n\nx/8i $pc\n\n
x/8i $pc

echo \n\nthread apply all backtrace\n\n
thread apply all backtrace

set pagination 0
set backtrace limit 250

# https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Hacking_Tips#Printing_the_JS_stack_%28from_gdb%29
enable unwinder .* SpiderMonkey

# CrashSignature trips up with "thread apply all backtrace" for now.
echo \n\nbacktrace\n\n
backtrace

# Could use "info all-registers" but that spews lots of junk
echo \n\ninfo reg\n\n
info registers

# Dump the disassembly of the crashing instruction and several following instructions.
# ($pc is an alias for $eip or $rip as needed)
echo \n\nx/8i $pc\n\n
x/8i $pc

echo \n\nthread apply all backtrace\n\n
thread apply all backtrace

Unwind JIT frames in gdb.
Unwind JIT frames in gdb.
