I wrote a wrapper python script debug.py that will run gdb as a subprocess, and then takes input from the args.

Usage is somewhat like:

$ debug.py start $ debug.py -c "break main" $ debug.py -c "continue"

Cursor at least doesn't seem to like running interactive programs yet.