Skip to content

Instantly share code, notes, and snippets.

@Gram21
Created November 15, 2015 19:11
Show Gist options
  • Save Gram21/5f8dcddd38800c974299 to your computer and use it in GitHub Desktop.
Save Gram21/5f8dcddd38800c974299 to your computer and use it in GitHub Desktop.
GDB Debug w/ open connection for remote
Socat-Version:
gdb socat -exec="set follow-fork-mode child"
r tcp-listen:4444,reuseaddr exec:./binary,PTY,raw,echo=0
Ncat-Version
gdb ncat -exec="set follow-fork-mode child"
r -l 0.0.0.0 1234 -e ./binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment