Is it possible to save/dump core file using gdb? Sometimes I want to save file to analyze it later.
You can also use gcore to produce cores.
gcore