Add PT_COREDUMP request that can be used to dump process' core from
within the debugger. The request accepts a buffer with path format
string, and writes the actual used path back.
In order to implement this, it was necessary to make coredump() function
non-static and add two additional parameters: the format string for path
and the buffer to write path back.