Date: Thu, 07 Dec 2006 11:17:36 +0000 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: Garrett Cooper <youshi10@u.washington.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: Forcing C program to core dump Message-ID: <4577F850.3080707@dial.pipex.com> In-Reply-To: <45771F7D.8070006@gmail.com> References: <457713C8.6020204@u.washington.edu> <45771F7D.8070006@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Niclas Zeising wrote: > Garrett Cooper wrote: > >> Hello, >> This may be obvious to some, but after some Googling (apparently >> with the wrong search terms, perhaps) and reading the gcc/gdb >> manpages, I can't seem to find out how to get a program to produce >> core dumps. >> So I was wondering, is there some simple means to produce core >> dumps or a set of conditions that I need to adhere to in order to get >> the OS to core dump the progrdam??? >> Thanks, >> -Garrett > > > Just kill it with the abort signal (SIGABRT) or some other signal that > makes the program dump core. Be aware though that if you are catching > or ignoring the signal, this won't work. > Regards! > //Niclas Which usually defaults to ctl-\ from the shell so it's easy to kill a foreground program with bothering to find process id's etc. OK, not what you actually wanted to do, but for completeness :-) --Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4577F850.3080707>