Re: reverse for GDB/MI

Michael Snyder
2008-12-18T21:39:08Z

Tomas Holmberg wrote:
>> I am not quite sure about adding new set of commands for that. Can we use
>> --reverse option, thereby not introducing new commands?
>
> Adding a reverse option to the existing commands is possible. But I do
> not think it is a good idea. It is not always obvious what should
> happen when running a standard command in reverse. I consider the
> reverse commands as a new set commands and not a variant of the old.

That's correct. The new commands (eg. reverse-next) account for
the differences between the standard commands and what should
happen in reverse.

However, note that (set exec-dir reverse ; next) is equivalent
to "reverse-next". It will do the right thing.