Teaching gdb to Unwind V8 JIT Frames on x64
Recently I landed a custom Python gdb unwinder in V8 that allows gdb to unwind through V8’s JIT-compiled frames on x64. During the process, I ended up digging into gdb’s internals to figure out how to properly implement the unwinder. Here are some notes about it and hopefully it can be useful for others who want to implement similar things for their own JITs.