This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: force fully core dump
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Bob Rossi <bob at brasko dot net>
- Cc: Brijesh Shukla <iap_shukla at access dot co dot jp>, gdb at sources dot redhat dot com
- Date: Fri, 15 Aug 2003 09:05:15 -0400
- Subject: Re: force fully core dump
- References: <3F3C8C6E.2070101@access.co.jp><20030815121504.GA1420@white>
Bob Rossi writes:
> Hi,
>
> Well, if you are on a system that supports the SIGABRT signal, then
> there is at least 1 alternative. Send the process the SIGABRT like,
> kill -SIGABRT pid. That should make the process core dump.
>
> Bob Rossi
>
> On Fri, Aug 15, 2003 at 04:31:58PM +0900, Brijesh Shukla wrote:
> > Hello GDB list,
> > I am asking a poor question..
> > How can i generate a forcefully core dump from a running process..
> > if there is any way please let me know..
> > thanks & regards
> > brijesh shukla
gcore is the command to use from within gdb.
(gdb) help gcore
Save a core file with the current state of the debugged process.
Argument is optional filename. Default filename is 'core.<process_id>'.
elena