Is it possible to pause a running program in C/C++ and capture its state which can be used later to resume it from the breakpoint?
Asked
Active
Viewed 153 times
2
-
5Maybe with [criu](http://criu.org/Main_Page)? – Kerrek SB Sep 05 '13 at 20:11
-
@KerrekSB That's awesome. – Sep 05 '13 at 20:13
-
1@H2CO3: Credit goes to Nominal Animal who [showed me that project](http://stackoverflow.com/a/18581317/596781). – Kerrek SB Sep 05 '13 at 20:18
-
You should tag what platform (OS) you are need a solution for. – josh poley Sep 05 '13 at 20:22
-
Another available solution is http://crd.lbl.gov/groups-depts/ftg/projects/current-projects/BLCR – Finslicer Sep 05 '13 at 20:46
-
Maybe you want to do this at a higher abstraction level? Maybe the perspective changes a bit if you give a hint to your specific use case. – Patrick Fromberg Sep 05 '13 at 22:47
-
Note that there is no way to resume a program with a socket, unless the other side of the socket is also willing to resume at the same time. – Cort Ammon Sep 06 '13 at 04:46