From: Michael Snyder <msnyder@vmware.com>
To: Jakob Engblom <jakob@virtutech.com>
Cc: 'Vladimir Prus' <vladimir@codesourcery.com>,
"gdb-patches@sources.redhat.com"
<gdb-patches@sources.redhat.com>
Subject: Re: GDB MI Reverse Commands added [3 of 3]
Date: Thu, 03 Sep 2009 20:13:00 -0000 [thread overview]
Message-ID: <4AA0233B.20900@vmware.com> (raw)
In-Reply-To: <018401ca2cc6$7c2581a0$747084e0$@com>
Jakob Engblom wrote:
>> Also, I would appreciate if this:
>>
>> # Test exec-reverse-next
>> # FIXME: Why does it take 2 next commands to get back to the
>> # previous line?
>>
>> were somehow addressed. I am not familiar with details of reverse behaviour,
> so I
>> did not even try to check that the tested commands and locations, etc, are
> right.
>
> Since this is tested on top of process record, I think I am not the best person
> to answer... but in general, what tends to happen in reverse in my experience is
> this:
>
> We have lines of code (or instructions)
>
> A
> B
>
> And we stop with a breakpoint in line B.
>
> We are then at the end of B, or in the middle of B, in the execution.
Let's say lines of code, then -- it doesn't generally make sense to be
stopped in the middle of an instruction.
So to make sure we are on the same page -- we've stopped at a
breakpoint in the *MIDDLE* of line B?
> Then, doing reverse one step/instruction/line will move you to the start of B.
>
> And another step/instruction/line moves you to before A was executed.
>
> Does that make sense for process record?
It does under the assumptions that I named above.
I suppose if we were talking about instructions that can be
interrupted in the middle, it might make sense there too.
next prev parent reply other threads:[~2009-09-03 20:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 15:10 Jakob Engblom
2009-08-27 1:43 ` Michael Snyder
2009-08-31 13:13 ` Jakob Engblom
2009-09-01 12:48 ` Jakob Engblom
2009-09-01 17:36 ` Tom Tromey
2009-09-07 1:18 ` Michael Snyder
2009-09-07 7:10 ` Jakob Engblom
2009-09-07 18:09 ` Joel Brobecker
2009-09-08 7:11 ` Jakob Engblom
2009-09-02 8:23 ` Vladimir Prus
2009-09-03 18:44 ` Jakob Engblom
2009-09-03 20:13 ` Michael Snyder [this message]
2009-09-07 1:44 ` Hui Zhu
2009-12-15 19:43 ` Michael Snyder
2009-12-16 9:59 ` Vladimir Prus
2009-12-15 19:42 ` Michael Snyder
2009-12-16 8:06 ` Vladimir Prus
2009-12-16 8:48 ` Jakob Engblom
2009-12-16 10:05 ` Vladimir Prus
2010-02-12 21:39 ` Michael Snyder
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=4AA0233B.20900@vmware.com \
--to=msnyder@vmware.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jakob@virtutech.com \
--cc=vladimir@codesourcery.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