gcore is a core dump utility for OS X (named after similar tools) and was created by Amit Singh and published along with his book “Mac OS X Internals” in the online bonus chapter.
gcore [-c corefile] [-s] <pid>
- -c
- Specify the file where to store the dump
Default:core.PID
- -s
- Suspend the process while dumping it's memory.
Note: If the process was already suspended, it will be resumed nevertheless.