Re: Edit-and-continue

2010-07-19 Thread Chris Lattner
On Jul 19, 2010, at 1:57 PM, Tom Tromey wrote: > Dave> But yes, OP, it's a long-term project. > > Apple implemented fix-and-continue in their toolchain. They spoke about > it a little bit on the gdb list, it is in the archives. My take-away > was that the feature is a lot of work for not muc

Re: Edit-and-continue

2010-07-19 Thread Tom Tromey
> "Dave" == Dave Korn writes: Dave> I think you're probably assuming too much. Tom T. is working on an Dave> incremental compiler, isn't he? I was, but I was asked to work on gdb a couple of years ago, so that work is suspended. Dave> But yes, OP, it's a long-term project. Apple impleme

Re: Edit-and-continue

2010-07-19 Thread Diego Novillo
On Sun, Jul 18, 2010 at 14:37, Ian Lance Taylor wrote: > This idea is related to Tom Tromey's incremental compiler work > (http://gcc.gnu.org/wiki/IncrementalCompiler) and to Per Bothner's > compiler server work > (http://per.bothner.com/papers/GccSummit03-slides/index.html).  Neither > project i

Re: [Bulk] Re: [Bulk] Re: Edit-and-continue

2010-07-19 Thread Terrence Miller
Rick, You are seeking perfection while I am suggesting a technique that doesn't capture all cases but is useful: 1) change only the body of a function 2) compile the new function into a shared library which the debugger dlopen's into the target process. 3) replace the entr

Re: [Bulk] Re: Edit-and-continue

2010-07-18 Thread Jonathan Wakely
On 18 July 2010 23:15, Rick C. Hodgin wrote: > Jonathan, > > If you run Linux, you can download VMware, and install a version of > Windows XP or later) I don't have a licence to do that. > and download Visual Studio Express from Microsoft > for free.  You can experiment with it and see how usefu

Re: [Bulk] Re: Edit-and-continue

2010-07-18 Thread Rick C. Hodgin
Jonathan, If you run Linux, you can download VMware, and install a version of Windows XP or later) and download Visual Studio Express from Microsoft for free. You can experiment with it and see how useful it is. It's pretty darned amazing actually. Once you use it, you'll always miss it. Simple

Re: [Bulk] Re: Edit-and-continue

2010-07-18 Thread Jonathan Wakely
On 18 July 2010 20:52, Rick C. Hodgin wrote: > > The idea of having function entry points across the board for all > executed code would be required, allowing those links to be updated > dynamically at run-time.  We could even use a memory-based lookup table > that's updated by gdb to the new entry

Re: Edit-and-continue

2010-07-18 Thread Rick C. Hodgin
On Sun, 2010-07-18 at 19:46 +0100, Jonathan Wakely wrote: > On 18 July 2010 16:25, Rick Hodgin wrote: > > Ian, > > > > The idea is to create a program database of the compiled program on a full > > compile. Then when asked to re-compile with the edit-and-continue switch, > > it only looks for cha

Re: [Bulk] Re: Edit-and-continue

2010-07-18 Thread Rick C. Hodgin
Terrence, Procedure entry points, global and local variable locations in memory, structure definitions and offsets, etc. These would all have to be updated as changes are made, and that means each reference used in the executable would need to be updated, and that could mean several source files

Re: [Bulk] Re: Edit-and-continue

2010-07-18 Thread Terrence Miller
If you are willing to restrict edit-and-continue to whole procedures then minimal changes to the compiled code for procedure entry points is all that is required (well that and dlopen). Terrence MIller On 7/18/2010 12:14 PM, Dave Korn wrote: On 18/07/2010 16:28, Robert Dewar wrote:

Re: Edit-and-continue

2010-07-18 Thread Ian Lance Taylor
Rick Hodgin writes: > The idea is to create a program database of the compiled program on a > full compile. Then when asked to re-compile with the edit-and-continue > switch, it only looks for changed code and compiles those few > lines. Everything else it needs to carry out compilation is there

Re: Edit-and-continue

2010-07-18 Thread Dave Korn
On 18/07/2010 16:28, Robert Dewar wrote: > Rick Hodgin wrote: >> Ian, >> >> The idea is to create a program database of the compiled program on a >> full compile. Then when asked to re-compile with the >> edit-and-continue switch, it only looks for changed code and compiles >> those few lines. Ever

Re: Edit-and-continue

2010-07-18 Thread Jonathan Wakely
On 18 July 2010 16:25, Rick Hodgin wrote: > Ian, > > The idea is to create a program database of the compiled program on a full > compile. Then when asked to re-compile with the edit-and-continue switch, it > only looks for changed code and compiles those few lines. Everything else it > needs to

Re: Edit-and-continue

2010-07-18 Thread Robert Dewar
Rick Hodgin wrote: Ian, The idea is to create a program database of the compiled program on a full compile. Then when asked to re-compile with the edit-and-continue switch, it only looks for changed code and compiles those few lines. Everything else it needs to carry out compilation is there fro

Re: Edit-and-continue

2010-07-18 Thread Rick Hodgin
Ian, The idea is to create a program database of the compiled program on a full compile. Then when asked to re-compile with the edit-and-continue switch, it only looks for changed code and compiles those few lines. Everything else it needs to carry out compilation is there from previous full-co

Re: Edit-and-continue

2010-07-17 Thread Ian Lance Taylor
Rick Hodgin writes: > To my knowledge, GCC does not currently support any edit-and-continue > abilities. Is this still true? And if so, are there any plans to introduce > it at some point? I don't see how it makes sense to add edit-and-continue to gcc. Compilation times are too slow, but the