Undumping program

utzoo!decvax!duke!chico!harpo!utah-cs!thomas utzoo!decvax!duke!chico!harpo!utah-cs!thomas
Wed Feb 17 18:09:34 AEST 1982


I have written a program which takes an a.out file and a core file
created by core dumping that a.out and creates a new executable file
with the text from the a.out and the data from the core.  This means
that a properly written program can be core dumped (after, say,
reading in some large tables) and restarted from the state it was
in when it dumped.  All data on the stack is, of course, lost,
but static data and heap (malloc'ed) data is still there.  Open
files are also lost (here's a use for the sh file descriptor binding!).

On utah-cs and utah-gr, this program is in ~thomas/bin/undump.  I would
be happy to send the source to anybody who wants it (it's not very long,
about 5000 characters).

Spencer Thomas
(thomas at utah-20, harpo!utah-cs!utah-gr!thomas)



More information about the Comp.unix.wizards mailing list