Humblest appologies, I forgot to include this part of the patch for process record save/restore. Thanks Hui for reminding me. This abstracts and exports some functionality from gcore.c, and adds some new functionality which process record will use for restoring the contents of a core file.