Initially I began implementing the gdb protocol on my own, but I then found a nice work-in-progress crate on https://github.com/daniel5151/gdbstub that suited my needs. Former-commit-id: f77557cbbd8652c2ed05ac439efc1956d8e99729