I’m not saying TCP doesn’t provide a useful facility, but I’m saying that ideally GDB data’s format should be independent of how it’s transmitted.
TCP is supposed to be the transport layer though - a container for the data that can be replaced by another container.
GDB should be the presentation layer - a data format that overall doesn’t care how it’s sent.
Ideally GDB shouldn’t care if it’s going over TCP or over stdin/stdout.
Have you been able to compile @FManga’s emulator with that setup?
The current setup I’m using is quite similar, but it’s SDL2_net that’s causing issues, not SDL itself (as far as I can tell).
I’ll make some screenshots tomorrow to show you.
In fact I might try getting a separate program up and running with SDL to see if I can narrow down the issue.