From 1b251a08f8c10ff292d1ca9b1c580e88df483b94 Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 26 Jun 2023 19:23:26 +0000 Subject: deploy: e730452fd8bd6824d35f25f2e87b8ec788b626fd --- tools/gdb.html | 6 ++++++ tools/zsh.html | 23 +++++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/gdb.html b/tools/gdb.html index 145fc62..d40e26d 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -341,6 +341,12 @@ instruction pointer ($rip x86) and format as instruction /i +

Set breakpoint on all threads except one

+

Create conditional breakpoint using the $_thread convenience +variable.

+
  # Create conditional breakpoint on all threads except thread 12.
+  b foo if $_thread != 12
+

Catch SIGSEGV and execute commands

This creates a catchpoint for the SIGSEGV signal and attached the command to it.

diff --git a/tools/zsh.html b/tools/zsh.html index 6b5eaab..04cdbde 100644 --- a/tools/zsh.html +++ b/tools/zsh.html @@ -378,8 +378,8 @@ blu -- desc for blu

where SPEC can have one of the following forms:

Available actions

(op1 op2)   list possible matches
@@ -416,6 +416,25 @@ function _foo() {
     esac
 }
 
+

Example with optional arguments

+

For this example we assume that the command foo takes at least three optional +arguments such as

+
foo arg1 arg2 arg3 [argN..]
+
+
function _foo() {
+    _arguments              \
+        "1:opt 1:(a b c)"   \
+        ":opt next:(d e f)" \
+        "*:opt all:(u v w)"
+}
+
+

Explanation:

+

_files is a zsh builtin utility function to complete files/dirs see