From 78b3836acf005c33ec4cdcb453f518b6e099c346 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 10 Mar 2022 22:22:00 +0000 Subject: deploy: a7d5161041378ae600affa8955e0c67a7cb1ba65 --- tools/awk.html | 2 +- tools/bash.html | 2 +- tools/emacs.html | 2 +- tools/fish.html | 2 +- tools/gdb.html | 6 +- tools/gdbserver.html | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++ tools/git.html | 2 +- tools/gpg.html | 2 +- tools/index.html | 3 +- tools/pacman.html | 2 +- tools/qemu.html | 12 ++- tools/radare2.html | 6 +- tools/tmux.html | 2 +- tools/zsh.html | 12 ++- 14 files changed, 279 insertions(+), 17 deletions(-) create mode 100644 tools/gdbserver.html (limited to 'tools') diff --git a/tools/awk.html b/tools/awk.html index f75cd70..b75ee82 100644 --- a/tools/awk.html +++ b/tools/awk.html @@ -81,7 +81,7 @@ diff --git a/tools/bash.html b/tools/bash.html index 2313057..a4714b8 100644 --- a/tools/bash.html +++ b/tools/bash.html @@ -81,7 +81,7 @@ diff --git a/tools/emacs.html b/tools/emacs.html index 007a159..ca3d4cb 100644 --- a/tools/emacs.html +++ b/tools/emacs.html @@ -81,7 +81,7 @@ diff --git a/tools/fish.html b/tools/fish.html index c41e571..56bb647 100644 --- a/tools/fish.html +++ b/tools/fish.html @@ -81,7 +81,7 @@ diff --git a/tools/gdb.html b/tools/gdb.html index fbac2a3..5b9e5d9 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -81,7 +81,7 @@ @@ -386,7 +386,7 @@ executed. To workaround that bug one can create a wrapper function which calls - @@ -404,7 +404,7 @@ executed. To workaround that bug one can create a wrapper function which calls - diff --git a/tools/gdbserver.html b/tools/gdbserver.html new file mode 100644 index 0000000..08ce6d0 --- /dev/null +++ b/tools/gdbserver.html @@ -0,0 +1,241 @@ + + + + + + gdbserver - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + +
+
+

gdbserver(1)

+

CLI

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

Example

+
# Start gdbserver.
+gdbserver localhost:1234 /bin/ls
+
+# Attach gdb.
+gdb -ex 'target remote localhost:1234'
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/git.html b/tools/git.html index 54f6a30..d969495 100644 --- a/tools/git.html +++ b/tools/git.html @@ -81,7 +81,7 @@ diff --git a/tools/gpg.html b/tools/gpg.html index 558be0a..6f24674 100644 --- a/tools/gpg.html +++ b/tools/gpg.html @@ -81,7 +81,7 @@ diff --git a/tools/index.html b/tools/index.html index df52377..afdc690 100644 --- a/tools/index.html +++ b/tools/index.html @@ -81,7 +81,7 @@ @@ -163,6 +163,7 @@
  • emacs
  • gpg
  • gdb
  • +
  • gdbserver
  • radare2
  • qemu
  • pacman
  • diff --git a/tools/pacman.html b/tools/pacman.html index b65cbb0..d0a26a4 100644 --- a/tools/pacman.html +++ b/tools/pacman.html @@ -81,7 +81,7 @@ diff --git a/tools/qemu.html b/tools/qemu.html index 3a74d43..4de9376 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -81,7 +81,7 @@ @@ -285,6 +285,16 @@ connection.

    # mount -t 9p -o trans=virtio someName /mnt -virtfs local,id=someName,path=<someHostPath>,mount_tag=someName,security_model=none +

    Debug logging

    +
    # List debug items.
    +-d help
    +
    +# Write debug log to file instead stderr.
    +-D <file>
    +
    +# Examples
    +-d in_asm       Log executed guest instructions.
    +

    Tracing

    # List name of all trace points.
     -trace help
    diff --git a/tools/radare2.html b/tools/radare2.html
    index 53073ba..a08fc33 100644
    --- a/tools/radare2.html
    +++ b/tools/radare2.html
    @@ -81,7 +81,7 @@
     
             
    @@ -177,7 +177,7 @@
                         
    +

    Key/values in associative arrays:

    +
    typeset -A vec; vec[a]='aa'; vec[b]='bb'
    +
    +echo ${(k)vec}        # a b
    +echo ${(v)vec}        # aa bb
    +echo ${(kv)vec}       # a aa b bb
    +
    +# Iterate over key value pairs.
    +for k v in ${(kv)vec)}; do ...; done
    +

    Argument parsing with zparseopts

    zparseopts [-D] [-E] [-A assoc] specs
     
    -- cgit v1.2.3