From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sourceware.org
Cc: Pedro Alves <pedro@palves.net>, Kevin Buettner <kevinb@redhat.com>
Subject: [PATCH v4 4/4] Linux checkpoints: Update NEWS and gdb.texinfo regarding multiple inferiors
Date: Tue, 25 Jun 2024 18:55:55 -0700 [thread overview]
Message-ID: <20240626020148.68109-5-kevinb@redhat.com> (raw)
In-Reply-To: <20240626020148.68109-1-kevinb@redhat.com>
---
gdb/NEWS | 2 ++
gdb/doc/gdb.texinfo | 23 ++++++++++++++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/gdb/NEWS b/gdb/NEWS
index 47677cb773a..380a204e5a2 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -13,6 +13,8 @@
This may cause breakage when using an incompatible libc, like uclibc or
newlib, or an older glibc.
+* Linux checkpoint code has been updated to work with multiple inferiors.
+
*** Changes in GDB 15
* The MPX commands "show/set mpx bound" have been deprecated, as Intel
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 86cd420832a..01d90ec0934 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -4316,18 +4316,39 @@ listed:
@table @code
@item Checkpoint ID
+@item Status
@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
+checkpoint(s) have been placed for a single inferior. The
+@var{I}.@var{N} form is used when checkpoints have been created for
+multiple inferiors.
+
+Status information consists of the letters @code{A} and @code{R}.
+@code{A} indicates an active processes in the checkpoint list; this is
+one which @value{GDBN} is currently debugging. @code{R} indicates a
+running process; this status letter can only appear when @value{GDBN}
+is running in non-stop mode. If neither @code{A} or @code{R} are present,
+this indicates a checkpoint which 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
--
2.45.2
next prev parent reply other threads:[~2024-06-26 2:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 1:55 [PATCH v4 0/4] Make linux checkpoints work with " Kevin Buettner
2024-06-26 1:55 ` [PATCH v4 1/4] " Kevin Buettner
2024-10-23 20:10 ` Pedro Alves
2024-10-31 3:04 ` Kevin Buettner
2024-11-11 18:40 ` Pedro Alves
2024-06-26 1:55 ` [PATCH v4 2/4] Capitalize output of successful checkpoint command Kevin Buettner
2024-06-26 1:55 ` [PATCH v4 3/4] Print only process ptids from linux-fork.c Kevin Buettner
2024-06-26 1:55 ` Kevin Buettner [this message]
2024-06-26 12:25 ` [PATCH v4 4/4] Linux checkpoints: Update NEWS and gdb.texinfo regarding multiple inferiors Eli Zaretskii
2024-09-07 18:12 ` [PATCH v4 0/4] Make linux checkpoints work with " Kevin Buettner
2024-09-30 3:39 ` Kevin Buettner
2024-10-21 18:21 ` Kevin Buettner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240626020148.68109-5-kevinb@redhat.com \
--to=kevinb@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@palves.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox