The source code for creating a core dump is in 'gcore', which is part of the gdb package.
In addition, the Sun has gcore .
In addition, you must have a separate process executing a core dump, as the current process must be paused. You will find the details in the gcore source, or you can simply launch your gcore platform with your process as a target.
Chris Sep 25 '08 at 4:21 2008-09-25 04:21
source share