From 0cf0869c24bfb00dfd7884f0e40565c2859df3f3 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 20 Mar 2022 21:16:42 +0000 Subject: deploy: 9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5 --- tools/gdb.html | 11 +++++++++++ tools/git.html | 31 ++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gdb.html b/tools/gdb.html index ca64e43..c51da87 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -219,6 +219,17 @@ <bp_list>: Space separates list, eg 'command 2 5-8' to run command for breakpoints: 2,5,6,7,8. +

Watchpoints

+
  watch [-location|-l] <expr> [thread <tnum>]
+          Create a watchpoint for <expr>, will break if <expr> is written to.
+          Watchpoints respect scope of variables, -l can be used to watch the
+          memory location instead.
+  rwatch ...
+          Sets a read watchpoint, will break if <expr> is read from.
+  awatch ...
+          Sets an access watchpoint, will break if <expr> is written to or read
+          from.
+

Inspection

  info functions [<regex>]
           List functions matching <regex>. List all functions if no <regex>
diff --git a/tools/git.html b/tools/git.html
index ce6c876..d4bb610 100644
--- a/tools/git.html
+++ b/tools/git.html
@@ -153,7 +153,34 @@
                 

git(1)

-

staging

+

Working areas

+
+-------------------+ --- stash -----> +-------+
+| working directory |                  | stash |  // Shelving area.
++-------------------+ <-- stash pop -- +-------+
+      |       ^
+     add      |
+      |     reset
+      v       |
++-------------------+
+|   staging area    |
++-------------------+
+      |
+    commit
+      |
+      v
++-------------------+
+| local repository  |
++-------------------+
+      |       ^
+     push     |
+      |     fetch /
+      |      pull
+      v       |
++-------------------+
+| remote repository |
++-------------------+
+
+

Staging

  git add -p [<file>] ............ partial staging (interactive)
 

Remote

@@ -209,6 +236,8 @@ git show --stat <commit> ................ show files changed by <commit> git show <commit> [<file>] .............. show diffs for <commit> + + git git show <commit>:<file> ............ show <file> at <commit>

Patching

  git format-patch <opt> <since>/<revision range>
-- 
cgit v1.2.3