The GDB JIT interface
Summary
The article explains how GDB handles JIT-compiled code, detailing the legacy approach using __jit_debug_register_code and __jit_debug_descriptor to expose JIT code, and outlining the registration workflow. It then describes the newer custom debug info interface, which requires implementing a binary reader for GDB, with examples across several runtimes. Additional topics include perf map integration, performance implications, and garbage collection considerations for JIT-compiled code.