From owner-freebsd-doc Fri Apr 20 2:50: 7 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A441137B424 for ; Fri, 20 Apr 2001 02:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3K9o1x78905; Fri, 20 Apr 2001 02:50:01 -0700 (PDT) (envelope-from gnats) Received: from cgmd76206.chello.nl (d9168.upc-d.chello.nl [213.46.9.168]) by hub.freebsd.org (Postfix) with ESMTP id F1DA637B43E for ; Fri, 20 Apr 2001 02:40:55 -0700 (PDT) (envelope-from edwin@cgmd76206.chello.nl) Received: by cgmd76206.chello.nl (Postfix, from userid 1001) id DACA5236; Fri, 20 Apr 2001 11:40:54 +0200 (CEST) Message-Id: <20010420094054.DACA5236@cgmd76206.chello.nl> Date: Fri, 20 Apr 2001 11:40:54 +0200 (CEST) From: edwin@mavetju.org Reply-To: edwin@mavetju.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/26728: [patch] FreeBSD Developers' Handbook: dumping core Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26728 >Category: docs >Synopsis: [patch] FreeBSD Developers' Handbook: dumping core >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 20 02:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.2-RELEASE i386 >Organization: - >Environment: $FreeBSD: doc/en_US.ISO_8859-1/books/developers-handbook/tools/chapter.sgml,v 1.3 2001/04/09 09:26:16 nik Exp $ >Description: The FreeBSD Developers' Handbook talks about one way of dumping core, but there are two more possible ways to do it. >How-To-Repeat: n/a >Fix: --- chapter.sgml.old Fri Apr 20 11:25:12 2001 +++ chapter.sgml Fri Apr 20 11:37:15 2001 @@ -978,6 +978,16 @@ infinite loop, for instance. If your program happens to trap SIGABRT, there are several other signals which have a similar effect. + + If you want to create a core dump from inside + your program, you can call the abort() function. See + the man page of abort(3) about this. + + If you want to create a core dump from outside + your program, but doesn't want it to end, you can + use the gcore program. See the man page of gcore(1) + about this. + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message