
Engineering at Meta · 6 min readDeveloper tools & productivity
Extending LLDB to Debug Applications That Span CPUs and GPUs
LLDB now supports a vendor‑neutral accelerator plugin architecture that treats CPUs and GPUs as separate debugger targets while presenting a unified debugging session. This design isolates hardware‑specific logic in plugins, enabling consistent IDE integration and easier addition of new GPU vendors.
- Separate CPU and GPU targets simplify handling distinct instruction sets and memory spaces
- Plugin interface translates vendor APIs into LLDB’s existing debugging abstractions
- Mock accelerator plugin allows testing without physical hardware