RE: reverse for GDB/MI

Jakob Engblom
2008-12-16T08:44:31Z

> One little annoying point is the command
> -gdb-set exec-direction [forward | reverse]
> When this command is issued, to be really correct, MI would need an
> event to notify a frontend that the exec-direction has changed.
> This is in case the exec-direction is changed in the console or from
> another window.

This is to retain compatibility with the normal gdb command-line commands for
reversing. According to an earlier discussion in October, this command was part
of the Michael Snyder patches to support rev exec, and it was decided then not
to change the commands.

> Another option, to avoid adding a new event, is if we could disable the
> changing of exec-direction when running in MI, and simulate it in the
> frontend.
> The frontend could simply keep track of the exec-direction chosen by the
> user
> and issue reverse commands or forward commands, appropriately.

The simplest solution is to have no "direction" at all, but just a set of
reverse-X and forward-X commands. But that is not inline with the main gdb user
interface as it stands currently as we understand it.

Happy to change it, if needed.

Best regards,

/jakob

_______________________________________________________

Jakob Engblom, PhD, Technical Marketing Manager

Virtutech Direct: +46 8 690 07 47
Drottningholmsvägen 14 Mobile: +46 709 242 646
11243 Stockholm Web: www.virtutech.com
Sweden
________________________________________________________