Dumping process memory on macOS

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: lldb --attach-pid <pid> 1 ...