diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-03-10 23:19:35 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-03-10 23:19:35 +0100 |
commit | a7d5161041378ae600affa8955e0c67a7cb1ba65 (patch) | |
tree | 9eace4942bef6002ed3dec8fda8f8a79f6f93dc0 /src/tools/gdbserver.md | |
parent | 33fe4f398c32ab65b71877277712b93f063ed63f (diff) | |
download | notes-a7d5161041378ae600affa8955e0c67a7cb1ba65.tar.gz notes-a7d5161041378ae600affa8955e0c67a7cb1ba65.zip |
added gdbserver
Diffstat (limited to 'src/tools/gdbserver.md')
-rw-r--r-- | src/tools/gdbserver.md | 24 |
1 files changed, 24 insertions, 0 deletions
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' +``` |