Date: Wed, 06 Dec 2006 20:52:29 +0100 From: Niclas Zeising <niclas.zeising@gmail.com> To: Garrett Cooper <youshi10@u.washington.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: Forcing C program to core dump Message-ID: <45771F7D.8070006@gmail.com> In-Reply-To: <457713C8.6020204@u.washington.edu> References: <457713C8.6020204@u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45771F7D.8070006>