This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB MI Reverse Commands added [2 of 3]


> From: "Jakob Engblom" <jakob@virtutech.com>
> Date: Thu, 27 Aug 2009 10:26:46 +0200
> 
> > How can you exit in reverse?  I think you can only get to the
> > beginning of `main', no?
> 
> It really depends on how your backend works... there is no necessary
> relationship between some function called "main" and where revexec starts.
> First of all, in a full-system reverse debug case, it is quite reasonable to
> "exit backwards" and get to the point BEFORE the program started. Just like you
> can get to AFTER exit if you let the program run its course. 

Yes, I understand that, but talking about this as "exiting" is awfully
confusing, because "exiting" is generally understood as going via a
call to `exit' or something similar.

So I think we need to change the wording here to not just say "exit".
Especially since you used "until the inferior exits" in both forward
and reverse execution cases.  The text should make it clear that these
two "exits" are actually very different.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]