@astrid @aparrish in fact this relatively short page I just found seems to be guidance on writing a simple gdbstub implementation intended specifically for emulators, so we're apparently not the only people who thought that might be a good idea 😁 https://www.retroreversing.com/tutorials/gdb-stub-in-c