coredump: introduce dump_interrupted()