From 21a13652df728c9571f899caf4949d5d46f49db7 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 1 May 2024 17:39:45 +0000 Subject: deploy: 7ca41565c4e70b212cb88a4d18c18fa35768df6d --- tools/gdbserver.html | 254 --------------------------------------------------- 1 file changed, 254 deletions(-) delete mode 100644 tools/gdbserver.html (limited to 'tools/gdbserver.html') diff --git a/tools/gdbserver.html b/tools/gdbserver.html deleted file mode 100644 index 48d5bd7..0000000 --- a/tools/gdbserver.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - gdbserver - Notes - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - -
-
-

gdbserver(1)

-

CLI

-
  gdbserver [opts] comm prog [args]
-    opts:
-      --disable-randomization
-      --no-disable-randomization
-      --wrapper W --
-
-    comm:
-      host:port
-      tty
-
-

Example

-
# 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.

-
gdbserver --wrapper env FOO=123 BAR=321 -- :12345 /bin/ls
-
- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - -
- - -- cgit v1.2.3