From: Pedro Alves <pedro@codesourcery.com>
To: teawater <teawater@gmail.com>
Cc: "Michael Snyder" <msnyder@vmware.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [RFA] Resubmit process record and replay, 6/10
Date: Wed, 26 Nov 2008 17:25:00 -0000 [thread overview]
Message-ID: <200811252309.08704.pedro@codesourcery.com> (raw)
In-Reply-To: <daef60380811231923v5c9ff8a8s3b4f39ecdef9a5a0@mail.gmail.com>
On Monday 24 November 2008 03:23:06, teawater wrote:
> > Not sure if it's "are we recording" or are we "replaying", or
> > a mix of both. In any case, could each call site on the common
> > code be replaced by a new suitable target method/property?
>
> Could you give me more message on it? I am not very clear your mean.
What is the property or state that you want to check
here? You should export that through the target_ops interface,
instead of making infrun.c tied to a record.c and
the record target.
Currently, GDB only distinguises reverse and forward
execution. Does it also need to know that replaying is a
special case of forward execution?
Perhaps you want to check if the current
target is replaying?
target_is_replaying()
?
Note that this would be a proper target_ops method, not
a reference record_ops, like in your current macro.
But, why do you need to protect `proceed' with the record
target, while reverse/replay debugging against sid or WMware
or Virtutech didn't need it? If they also need it, or will
need it, what's the check that GDB should do to prevent
the bad writes from happening in those targets too?
And, why only in `proceed'?
Figuring this out, and knowing *exactly* what is it that this
check is protecting against will let us know if there's some
other better way. Plain ignoring writes may or may not be
the right thing to do here. Can you show an example of what
you're protecting against?
E.g., should you instead prohibit the 'jump ADDR' command at a
higher layer when replaying or executing backwards?
--
Pedro Alves
next prev parent reply other threads:[~2008-11-25 23:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-17 2:27 teawater
2008-11-20 4:48 ` Michael Snyder
2008-11-20 5:27 ` Pedro Alves
2008-11-20 8:04 ` Michael Snyder
2008-11-20 8:08 ` Pedro Alves
2008-11-24 16:45 ` teawater
2008-11-26 17:25 ` Pedro Alves [this message]
2008-11-26 20:44 ` teawater
2008-11-24 17:32 ` teawater
2008-11-24 21:54 ` Michael Snyder
2008-11-25 17:47 ` teawater
2008-11-26 15:55 ` Michael Snyder
2008-11-26 19:32 ` teawater
2008-12-05 3:35 ` teawater
2008-12-11 3:43 ` teawater
2008-12-19 7:26 ` teawater
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=200811252309.08704.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@vmware.com \
--cc=teawater@gmail.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