This is an attempt to implement a GDB Remote Protocol stub and the LLDB Extension to better understand them. Therefore, it is not intended to be used in production at all.
I only hope this code can provide some guidance for those who are interested in implementing GDB support to their project.
You can follow the journey of this development in my series Implement GDB Remote Debug Protocol Stub From Scratch 1, 2, 3, 4, 5, 6
Implements the stub
The interface of the GDB command handler.
A fake CPU that also implements the GDBCommandHandler.