This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Refcard - Reversible Debugging Commands.
- From: John Carter <cyento at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 12 Apr 2013 11:20:33 +1200
- Subject: Refcard - Reversible Debugging Commands.
I wanted to educate my colleagues about the presence of reversible
debugging by given then the refcard.... When I discovered it didn't
mention it.
So I hacked on the tex file until it is sort of OK.
Glitches are...
* Grown an extra half full page containing license gumph.
* Sections no longer match column boundaries perfectly. (Hmm. I
recognise this.. this is the knapsack problem!)
Anyway, here is my attempt.
diff --git a/gdb/doc/refcard.tex b/gdb/doc/refcard.tex
index 217799a..e077ab4 100644
--- a/gdb/doc/refcard.tex
+++ b/gdb/doc/refcard.tex
@@ -410,6 +410,15 @@ set var={\it expr}&evaluate {\it expr} without
displaying it; use for
altering program variables\cr
\endsec
+\sec Reversible Debugging;
+record &Record execution, thereafter can prefix ``Execution Control''
commands with ``reverse-'' or ``r''.\cr
+record delete &Delete the rest of execution log and start recording it anew\cr
+record goto &Restore the program to its state at instruction number N\cr
+record restore &Restore the execution log from a file\cr
+record save &Save the execution log to a file\cr
+record stop &Stop the record/replay target\cr
+\endsec
+
\sec Display;
print \opt{\tt/{\it f}\/} \opt{\it expr}\par
p \opt{\tt/{\it f}\/} \opt{\it expr}&show value of {\it expr} \opt{or
@@ -451,8 +460,6 @@ n}\cr
info display&numbered list of display expressions\cr
\endsec
-\vfill\eject
-
\sec Expressions;
{\it expr}&an expression in C, C++, or Modula-2 (including function
calls), or:\cr
{\it addr\/}@{\it len}&an array of {\it len} elements beginning at {\it
@@ -518,7 +525,6 @@ attach {\it param}&connect to another process\cr
detach&release target from GDB control\cr
\endsec
-\vfill\eject
\sec Controlling GDB;
set {\it param} {\it value}&set one of GDB's internal parameters\cr
show {\it param}&display current setting of parameter\cr
@@ -584,7 +590,6 @@ show path&display executable and symbol file path\cr
info share&list names of shared libraries currently loaded\cr
\endsec
-\vfill\eject
\sec Source Files;
dir {\it names}&add directory {\it names} to front of source path\cr
dir&clear source path\cr