ai-today.org
Menu

Meta Engineering · Nov 9, 2026

Extending LLDB to Debug Applications That Span CPUs and GPUs

Meta and contributors built a vendor-neutral accelerator plugin system in lldb-server so developers can trace bugs across CPU code and GPU kernels in one LLDB or IDE session. CPU and GPU appear as separate targets with independent

Read moreShow less about Extending LLDB to Debug Applications That Span CPUs and GPUs

Meta and contributors built a vendor-neutral accelerator plugin system in lldb-server so developers can trace bugs across CPU code and GPU kernels in one LLDB or IDE session.

CPU and GPU appear as separate targets with independent architectures, registers, address spaces and execution state. Vendors handle device control in plugins, while shared LLDB tools work across hardware. CPU-only debugging incurs no added runtime overhead.

Host runtime events let the plugin start device debugging and establish a second connection. An AMD HIP sample showed a pending breakpoint resolving when the GPU module loaded and a backtrace from the GPU target.

The framework supports live debugging and GPU core dumps. Meta uses it across different GPU stacks, and a mock plugin lets LLVM test coordination without specialized hardware.

Meta has upstreamed most of the common framework to LLVM and plans to finish that work and expand vendor integrations.

Read at Meta Engineering (opens in a new tab)

Share