From fa7eb205d5f18b72c1e04a4229d171a15040bdea Mon Sep 17 00:00:00 2001 From: johannst Date: Fri, 30 Sep 2022 10:58:40 +0000 Subject: deploy: b6f25b16f1f23b0169e8f076e79ee4964b81db99 --- tools/gdb.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gdb.html b/tools/gdb.html index 7236619..4880602 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -203,6 +203,9 @@ <bp_list>: Space separates list, eg 'command 2 5-8' to run command for breakpoints: 2,5,6,7,8. + + save break <file> + Save breakpoints to <file>. Can be loaded with the `source` command.

Watchpoints

  watch [-location|-l] <expr> [thread <tnum>]
@@ -253,7 +256,10 @@
           Show current substitution rules.
 

Configuration

-
  set follow-fork-mode <child | parent>
+
  set disassembly-flavor <intel | att>
+          Set the disassembly style "flavor".
+
+  set follow-fork-mode <child | parent>
           Specify which process to follow when debuggee makes a fork(2)
           syscall.
 
@@ -355,6 +361,18 @@ For example create run.gdb:

This script can be used as:

  gdb --batch -x ./run.gdb -p <pid>
 
+

Hook to automatically save breakpoints on quit

+
define break-save
+    save breakpoint $arg0.gdb.bp
+end
+define break-load
+    source $arg0.gdb.bp
+end
+
+define hook-quit
+    break-save quit
+end
+

Know Bugs

Workaround command + finish bug

When using finish inside a command block, commands after finish are not -- cgit v1.2.3