diff options
-rw-r--r-- | src/SUMMARY.md | 1 | ||||
-rw-r--r-- | src/tools/README.md | 1 | ||||
-rw-r--r-- | src/tools/gdbserver.md | 24 |
3 files changed, 26 insertions, 0 deletions
diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 9f96a53..830812f 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -12,6 +12,7 @@ - [emacs](./tools/emacs.md) - [gpg](./tools/gpg.md) - [gdb](./tools/gdb.md) + - [gdbserver](./tools/gdbserver.md) - [radare2](./tools/radare2.md) - [qemu](./tools/qemu.md) - [pacman](./tools/pacman.md) diff --git a/src/tools/README.md b/src/tools/README.md index 159b726..8d3baa6 100644 --- a/src/tools/README.md +++ b/src/tools/README.md @@ -9,6 +9,7 @@ - [emacs](./emacs.md) - [gpg](./gpg.md) - [gdb](./gdb.md) +- [gdbserver](./gdbserver.md) - [radare2](./radare2.md) - [qemu](./qemu.md) - [pacman](./pacman.md) diff --git a/src/tools/gdbserver.md b/src/tools/gdbserver.md new file mode 100644 index 0000000..5f85e0a --- /dev/null +++ b/src/tools/gdbserver.md @@ -0,0 +1,24 @@ +# gdbserver(1) + +# CLI + +```markdown + gdbserver [opts] comm prog [args] + opts: + --disable-randomization + --no-disable-randomization + + comm: + host:port + tty +``` + +# Example + +```markdown +# Start gdbserver. +gdbserver localhost:1234 /bin/ls + +# Attach gdb. +gdb -ex 'target remote localhost:1234' +``` |