Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2006 20:42:14 +0100
From:      Max Laier <max@love2party.net>
To:        freebsd-hackers@freebsd.org
Cc:        Garrett Cooper <youshi10@u.washington.edu>
Subject:   Re: Forcing C program to core dump
Message-ID:  <200612062042.20791.max@love2party.net>
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
--nextPart1192689.acAocZHPKI
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=20
interesting sysctls.

=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--nextPart1192689.acAocZHPKI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQBFdx0cXyyEoT62BG0RAhUlAJ4qO6Ss8b5ymlj0wRV+VJ3Ne/m9sACfSZdZ
AEVEk9LXmtVZqzwQcAeeWhc=
=1If4
-----END PGP SIGNATURE-----

--nextPart1192689.acAocZHPKI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612062042.20791.max>