Forcing C program to core dump

Max Laier max at love2party.net
Wed Dec 6 11:47:51 PST 2006


On Wednesday 06 December 2006 20:02, 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???

See gcore(1) and abort(3).  sysctl -a | grep core might turn up some 
interesting sysctls.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20061206/dd4c6bd7/attachment.pgp


More information about the freebsd-hackers mailing list