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

2010-10-30 Thread Graeme Geldenhuys
On 30 October 2010 22:45, Michael Van Canneyt wrote: > > Strange. Never even knew it was there, let alone used it, despite working > with Delphi every day since 15 years... Use cases vary indeed ! Something I knew about Delphi you didn't! :-) What do you keep telling me: "You are never to old to

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

2010-10-30 Thread Michael Van Canneyt
On Sat, 30 Oct 2010, ABorka wrote: On 10/30/2010 04:07, Graeme Geldenhuys wrote: On 30 October 2010 11:26, Jonas Maebe 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 h

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

2010-10-30 Thread Graeme Geldenhuys
On 30 October 2010 21:41, ABorka wrote: > > This was there back in Delphi 5 already. All you needed to do is to switch I thought so, because the project I remember working on was written in D5 (many years back), and I was pretty sure I use this feature then. > code. It is one of the things I re

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

2010-10-30 Thread ABorka
On 10/30/2010 04:07, Graeme Geldenhuys wrote: On 30 October 2010 11:26, Jonas Maebe 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/rev

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

2010-10-30 Thread Graeme Geldenhuys
On 30 October 2010 13:27, Jonas Maebe wrote: > > Reverse execution does not involve recompiling nor restarting the application > either. Yes I understand that, but what I have done, should work on Windows as well as Linux, irrespective in GDB supports it or not. > Simply changing EIP is less s

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

2010-10-30 Thread Graeme Geldenhuys
On 30 October 2010 13:25, Graeme Geldenhuys wrote: > > Definitely not possible with Lazarus IDE, and definitely works with > MSEide. The Watches window in MSEide also allows me to modify variable > values by simply typing in another value. I successfully repeated the > same procedure call over and

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

2010-10-30 Thread Jonas Maebe
On 30 Oct 2010, at 13:07, Graeme Geldenhuys wrote: > On 30 October 2010 11:26, Jonas Maebe 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/sof

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

2010-10-30 Thread Graeme Geldenhuys
On 30 October 2010 13:07, Graeme Geldenhuys wrote: > Google found my exact answer. I see I can modify the CPU registers in > MSEide, but I don't think this is possible with Lazarus IDE. Just > tried, and it seems to work in MSEide - I'll do more testing to > confirm. The register in question was E

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

2010-10-30 Thread Graeme Geldenhuys
On 30 October 2010 11:26, Jonas Maebe 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

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

2010-10-30 Thread Jonas Maebe
On 30 Oct 2010, at 09:57, Graeme Geldenhuys wrote: > Do you know how to move the > execution point back to an earlier line? eg: I want to execute the > program to call the same procedure, but with a different variable, so > I want to set execution back a few source lines, change the variable, > a

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

2010-10-30 Thread Graeme Geldenhuys
Hi Seth, On 29 October 2010 20:09, Seth Grover wrote: > I *was* doing something wrong... doing a ":=" (pascal-style > assignment) rather than just "=" seems to work Ok. I was battling with this too, thanks. Do you know how to move the execution point back to an earlier line? eg: I want to exec

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

2010-10-29 Thread Seth Grover
I *was* doing something wrong... doing a ":=" (pascal-style assignment) rather than just "=" seems to work Ok. -SG -- This email is fiction. Any resemblance to actual events or persons living or dead is purely coincidental. Seth Grover sethdgrover[at]gmail[dot]com On Fri, Oct 29, 2010 at 10:5