From a7d5161041378ae600affa8955e0c67a7cb1ba65 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 10 Mar 2022 23:19:35 +0100 Subject: added gdbserver --- src/tools/gdbserver.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/tools/gdbserver.md (limited to 'src/tools/gdbserver.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' +``` -- cgit v1.2.3