Xref: utzoo comp.unix.questions:30923 comp.unix.wizards:25302 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!csn!neocad!carl From: carl@neocad.com (Carl Stern) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Restarting a process from a core file Message-ID: <1991May1.170008.12258@neocad.com> Date: 1 May 91 17:00:08 GMT Organization: NeoCAD, Inc. Lines: 22 Ideally what I'd like to do is to be able to save the state of a process at a given point in time and then restart it for debugging purposes. I thought I could send it a signal to dump core, (I've tried QUIT, ABRT, TRAP), and then use dbx to debug the core file. I can't continue execution though, which is what I want to be able to do. I believe this is because there is no active process for dbx to debug. So is there a way, or an existing program, that can take a core file and use it to initialize a process and run it? i.e. reload the core file and restart it as a process. If not, why not? The main reason I want to do this is I have a bug that occurs after about 30-40 minutes of run time. Obviusly it would be nice to restart at time T=30 instead of T=0 when bringing it around again to find the bug. I'm using Sun OS 4.1.1 on a sparc. Thanks for any help. -- Carl Stern NeoCAD carl@neocad.com 2585 Central Ave. Boulder, CO 80301 Phone: (303) 442-9121