From 6f5b0cb0cfac62fc0e1876726d05e1d30587ccf9 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 1 May 2024 15:27:02 +0200 Subject: debug: move gdb, gdbserver to own group --- src/tools/gdbserver.md | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 src/tools/gdbserver.md (limited to 'src/tools/gdbserver.md') diff --git a/src/tools/gdbserver.md b/src/tools/gdbserver.md deleted file mode 100644 index 203846d..0000000 --- a/src/tools/gdbserver.md +++ /dev/null @@ -1,33 +0,0 @@ -# gdbserver(1) - -# CLI - -```markdown - gdbserver [opts] comm prog [args] - opts: - --disable-randomization - --no-disable-randomization - --wrapper W -- - - comm: - host:port - tty -``` - -## Example - -```markdown -# Start gdbserver. -gdbserver localhost:1234 /bin/ls - -# Attach gdb. -gdb -ex 'target remote localhost:1234' -``` - -## Wrapper example: Set environment variables just for the debugee -Set `env` as execution wrapper with some variables. -The wrapper will be executed before the debugee. - -```markdown -gdbserver --wrapper env FOO=123 BAR=321 -- :12345 /bin/ls -``` -- cgit v1.2.3