UNDUMP(1)

NAME
undump - convert a core dump to an executable a.out file

SYNOPSIS
undump new-a.out-file [old-a.out-file] [core-file]

DESCRIPTION
Undump takes a core dump file and the executable "a.out" file which caused it and produces a new executable file with all static variables initialised to the values they held at the time of the core dump. It is primarily useful for programs which take a long time to initialise themselves, e.g. Emacs. The idea is to go through all of the initialisations and then create a core dump (e.g. with the abort() call). One then uses undump to make a new executable file with all of it done. This usually implies the use of a global flag variable which says whether or not initialisation has been done.

Undump's arguments, old-a.out-file and core-file, default to "a.out" and "core", respectively.

A few things to keep in mind about undump:

    It doesn't preserve open files.

    The program will be re-entered at the beginning of main(), not at the point where the core dump occurred.

BUGS
Probably should have an option to not require old-a.out-file if the core came from a 407 file.