This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: generating a core file
- From: Kip Macy <kmacy at fsmware dot com>
- To: David Carlton <carlton at kealia dot com>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Mon, 22 Mar 2004 09:33:46 -0800 (PST)
- Subject: Re: generating a core file
- References: <yf2lllsu75w.fsf@hawaii.kealia.com>
On solaris and BSD there is gcore. I assume such a thing can be found
for linux and that it can be modified to write the output to a socket
instead of a file.
I wrote a checkpoint/restore facility for a BSD a few months back, the
checkpointing part was just an extension to core dump with some extra
interfaces exported. If gcore won't do the trick you could add a
system call that would take a file descriptor and then pass that to the
core dump routine.
-Kip
On Mon, 22 Mar 2004, David Carlton wrote:
> This is quite off-topic, but are there any programs out there that can
> generate a core file from a stopped process, and write that core file
> to a pipe or send it over the network somehow? We're having issues
> debugging seg faults on machines without local disks, and for various
> reasons we'd rather not remotely mount disks on these machines,
> either.
>
> David Carlton
> carlton@kealia.com
>