]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Linux checkpoints: Update NEWS and gdb.texinfo regarding multiple inferiors
authorKevin Buettner <kevinb@redhat.com>
Wed, 5 Feb 2025 18:27:00 +0000 (11:27 -0700)
committerKevin Buettner <kevinb@redhat.com>
Wed, 5 Feb 2025 18:28:29 +0000 (11:28 -0700)
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Reviewed-By: Tom Tromey <tom@tromey.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/NEWS
gdb/doc/gdb.texinfo

index 33d7af83d50de8950819941a6e9b8ee56a2134f1..39a5f6683e316a76bf93cc63da56a7119da0c1a2 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -24,6 +24,8 @@
 
 * UST (static tracepoint) support from gdbserver has been removed.
 
+* Linux checkpoint code has been updated to work with multiple inferiors.
+
 * New commands
 
 maintenance check psymtabs
index ff9fe298be32b4d6a75220d91500d9944edc4e99..b37266b708e6adf9ab821c1072346578255bcdcb 100644 (file)
@@ -4322,18 +4322,36 @@ listed:
 
 @table @code
 @item Checkpoint ID
+@item Active state indicator
 @item Process ID
 @item Code Address
 @item Source line, or label
 @end table
 
+Checkpoint IDs will be displayed as either a non-negative integer or
+in the form @var{i}.@var{n}, where @var{i} is the inferior number, a
+positive integer, as shown by the command @code{info inferiors}, and
+@var{n}, a non-negative integer, is the checkpoint number for that
+inferior.  The single non-negative integer form is used when
+there is only one inferior.  The @var{i}.@var{n} form is used when
+there are multiple inferiors.
+
+The active state indicator is a single letter, either @samp{y} or
+@samp{n}, indicating yes or no.  Only one checkpoint per inferior may
+be active at once.  The active checkpoint in the current inferior is
+also shown by a @samp{*} at the start of the line.  Checkpoints whose
+active state is @samp{n} can be switched to using the @code{restart}
+command or deleted using the @code{delete checkpoint} command.
+
 @kindex restart @var{checkpoint-id}
 @item restart @var{checkpoint-id}
 Restore the program state that was saved as checkpoint number
 @var{checkpoint-id}.  All program variables, registers, stack frames
 etc.@:  will be returned to the values that they had when the checkpoint
 was saved.  In essence, gdb will ``wind back the clock'' to the point
-in time when the checkpoint was saved.
+in time when the checkpoint was saved.  The checkpoint number
+@var{checkpoint-id} is specified in the same form as that output by the
+@code{info checkpoints} command.
 
 Note that breakpoints, @value{GDBN} variables, command history etc.
 are not affected by restoring a checkpoint.  In general, a checkpoint