This is the mail archive of the
mailing list for the GDB project.
Re: [discuss] Support for reverse-execution
"Eli Zaretskii" <email@example.com> writes:
>> Date: Thu, 19 May 2005 15:00:52 +0200
>> From: Johan Rydberg <firstname.lastname@example.org>
>> Cc: email@example.com
>> + add_com ("rnext", class_run, rnext_command,
>> + "Step program until it reaches the previous source line.\n\
> "Go backwards until the program reaches the source line before the
> current one."
The beginning or any part of the source line? While the latter is easy to
determine (just step until the source line changes), the former is not
very well defined, since the code for a source line can be intermixed with
code from other source lines. On the other hand, just stepping until the
source line changes is not very useful, since in extreme case you'll just
step back a single insn if the previous command was a forward step and you
won't really undo much of this step.
Andreas Schwab, SuSE Labs, firstname.lastname@example.org
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."