Can I resume corefile back to a running program?

I have a tool for taking snapshots of my C program when I run it as kernel files.

Is it possible to return these core files as executable programs? And if so, how do I do this? Are there any libraries that already do this?

I am working on * nix systems.

+6
source share
2 answers

Yes, it is theoretically.

If your snapshot is a complete dump of the entire memory of your program, a stack, a bunch with a PC, you can return this dump to memory and start the execution process again. But you will need to do this on the core land, I think.

+2
source

GDB will do it for you. I used it for programs that crashed, creating a kernel, but this theoretically should not be otherwise.

0
source

Source: https://habr.com/ru/post/909739/


All Articles