From: Paul Eggert <eggert@cs.ucla.edu>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>
Subject: Re: reverse execution part of the manual is written backwards
Date: Wed, 10 Apr 2019 15:13:00 -0000 [thread overview]
Message-ID: <55c40c99-277d-752f-c262-40cae873af67@cs.ucla.edu> (raw)
In-Reply-To: <51cb91ba-6bcd-3de9-43d4-c766e2737c88@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
Pedro Alves wrote:
> This is not correct. "record" is one way to support reverse execution,
> but there are others.
OK, how about the attached patch instead?
[-- Attachment #2: gdb-diff.txt --]
[-- Type: text/plain, Size: 867 bytes --]
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index f410d026b8..6410e9cc7b 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -6697,8 +6697,13 @@ assumes that the memory and registers that the target reports are in a
consistant state, but @value{GDBN} accepts whatever it is given.
}.
-If you are debugging in a target environment that supports
-reverse execution, @value{GDBN} provides the following commands.
+Not every target environment supports reverse execution, and some
+targets require that you first use the @code{record} or @code{record
+btrace} command, so that instructions executed by the program are
+saved for reverse execution later. @xref{Process Record and Replay}.
+
+@value{GDBN} provides the following commands to examine the process
+record and execute the program in reverse.
@table @code
@kindex reverse-continue
prev parent reply other threads:[~2019-04-10 15:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-10 4:19 Paul Eggert
2019-04-10 11:51 ` Pedro Alves
2019-04-10 14:54 ` Eli Zaretskii
2019-04-11 15:55 ` Pedro Alves
2019-04-11 16:27 ` Eli Zaretskii
2019-04-22 6:50 ` Paul Eggert
2019-04-22 11:50 ` Pedro Alves
2019-04-10 15:13 ` Paul Eggert [this message]
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=55c40c99-277d-752f-c262-40cae873af67@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/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