Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tehmasta/43dc2431e476dfadec26ef54c643e2ac to your computer and use it in GitHub Desktop.
Save tehmasta/43dc2431e476dfadec26ef54c643e2ac 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