[fpc-pascal] Re: setting variables with DWARF in gdb

Michael Van Canneyt michael at freepascal.org
Sat Oct 30 22:45:38 CEST 2010



On Sat, 30 Oct 2010, ABorka wrote:

> On 10/30/2010 04:07, Graeme Geldenhuys wrote:
>> On 30 October 2010 11:26, Jonas Maebe<jonas.maebe at elis.ugent.be>  wrote:
>>> 
>>> Reverse execution is a new feature that was added to gdb 7.0, although you 
>>> probably want to use 7.2 for the extra bug fixes. The supported targets 
>>> are listed at http://www.gnu.org/software/gdb/news/reversible.html (nobody 
>>> has added support for Windows yet) and the instructions on how to use it 
>>> are on the wiki page linked from that page.
>>> 
>> 
>> That's not exactly what I meant. I remember back in Delphi 7 (maybe
>> even as far back as D5), that I changed the execution point, so it can
>> re-execute a procedure but with different values - no need to
>> recompile or restart the application.
> .
> .snip
> .
>
>
> This was there back in Delphi 5 already. All you needed to do is to switch to 
> CPU view, and "Set new CS:IP" and you could re-execute that part of the code. 
> It is one of the things I really really miss (it saved hours of wasted time 
> when debugging of the handling of different conditions in the code)

Strange. Never even knew it was there, let alone used it, despite working
with Delphi every day since 15 years... Use cases vary indeed !

Michael.



More information about the fpc-pascal mailing list