To generate a minidump, the following steps can be used, on a GENERIC64 kernel:
```
sysctl debug.kdb.panic=1
db> dump
```
Reboot and after the system starts up the minidump should be available at /var/crash, provided that dumpdev was configured properly.
With a patched libkvm (to be posted soon), it is then possible to translate addresses and read the dumped memory pages.