coredump: introduce struct core_state.
cover coredump: introduce struct core_state.
Re-send.
The second patch was changed to not depend on ignored "ptrace: kill may_ptrace_stop()" patch.
I think this series makes sense by itself, but it is also preparation for the further changes.
Oleg.