This is just a reminder to myself on how to dump a processes memory on macOS/OS X. This was done on El Capitan using LLDB to create a core dump. I had previously tried gcore installed using Homebrew but that failed to dump any processes.

From terminal use the following command:

Then from the LLDB command line:

where “core” can be any filename you wish to name the dump.



Dumping process memory on macOS