From: "Jakob Engblom" <jakob@virtutech.com>
To: "'Pedro Alves'" <pedro@codesourcery.com>, <gdb-patches@sourceware.org>
Cc: "'Joel Brobecker'" <brobecker@adacore.com>,
"Tomas Holmberg" <th@virtutech.com>,
"'Vladimir Prus'" <vladimir@codesourcery.com>
Subject: RE: reverse for GDB/MI
Date: Fri, 19 Dec 2008 13:32:00 -0000 [thread overview]
Message-ID: <002b01c961de$197b1320$4c713960$@com> (raw)
In-Reply-To: <200812191322.09555.pedro@codesourcery.com>
> Me too. It's confusing because "reverse-finish" isn't really doing a reverse
> "finish". If it were, a "finish", followed by a "reverse-finish" (or the
> other way around) would bring you to the original state, like a "step"
followed
> by
> a "reverse-step" tries to (it can't be 100% accurate, but still).
Good point. Reverse-x naming works when x and rev-x cancel each other. Which is
pretty much limited to instruction step or moving a certain number of machine
instructions forward or backward. On source level, you get other expected
behavior.
For example, if you have
A;
Call(b);
C;
And sit at "C" and do a reverse-step, you might well end up at A as that is
stepping back in the same function. While inside b, doing a step that hits a
return will put you at C, but unstepping is then contrained to do so in the
scope you are in. Anything else than instruction back or forward can have
asymmetric behavior due to the way function scope affect the behavior of
debugging commands.
> I think someone just proposed to rename "reverse-finish" to "uncall", that
> although
> may sound weird at first, states much clearly what the "reverse-finish"
command
> really does.
Uncall is a good name, as it makes it much clearer what is going on.
/jakob
next prev parent reply other threads:[~2008-12-19 13:32 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-15 10:59 Tomas Holmberg
2008-12-15 18:52 ` Marc Khouzam
2008-12-16 8:44 ` Jakob Engblom
2008-12-16 14:45 ` Marc Khouzam
2008-12-15 20:50 ` Eli Zaretskii
2008-12-17 14:57 ` Tomas Holmberg
2008-12-17 16:41 ` Eli Zaretskii
2008-12-17 16:17 ` Vladimir Prus
2008-12-18 8:33 ` Tomas Holmberg
2008-12-18 8:35 ` Vladimir Prus
2008-12-18 9:16 ` Jakob Engblom
2009-02-05 9:38 ` Vladimir Prus
2009-02-06 4:11 ` Doug Evans
2009-02-06 10:08 ` Jakob Engblom
2009-02-06 10:49 ` Vladimir Prus
2009-02-06 13:56 ` Jakob Engblom
2008-12-19 8:26 ` Tomas Holmberg
2008-12-19 11:07 ` Joel Brobecker
2008-12-19 13:22 ` Pedro Alves
2008-12-19 13:32 ` Jakob Engblom [this message]
2008-12-19 19:11 ` Michael Snyder
2008-12-22 20:27 ` Marc Khouzam
2008-12-22 21:14 ` Michael Snyder
2008-12-22 21:16 ` Marc Khouzam
2009-01-03 18:09 ` Jakob Engblom
2009-01-20 18:22 ` Marc Khouzam
2009-01-21 5:23 ` teawater
2009-01-21 15:21 ` Tomas Holmberg
2009-02-05 12:08 ` Vladimir Prus
2008-12-18 21:39 ` Michael Snyder
2008-12-19 9:10 ` Tomas Holmberg
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='002b01c961de$197b1320$4c713960$@com' \
--to=jakob@virtutech.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=th@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