views:

199

answers:

1

Is it possible to generate a core dump without killing the process? If so, what is the command/signal to do so?

Thanks, Jim

+1  A: 

See the 'gcore' command, part of GDB.

janneb
This looks promising. I got core file this way. However, the process I'm analyzing terminates as soon as I detach gdb from it. It also terminates immediately if I strace it.Do you know any way to prevent it from detecting that it's getting attached by gdb/strace?Thanks again!
Jim