From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26491 invoked by alias); 11 Jan 2006 01:52:25 -0000 Received: (qmail 26482 invoked by uid 22791); 11 Jan 2006 01:52:24 -0000 X-Spam-Check-By: sourceware.org Received: from thunder.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.71) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jan 2006 01:52:23 +0000 Received: from [192.168.0.10] (220-253-60-77.VIC.netspace.net.au [220.253.60.77]) by mail.netspace.net.au (Postfix) with ESMTP id 7769949D2D for ; Wed, 11 Jan 2006 12:52:19 +1100 (EST) Message-ID: <43C464D2.4000107@netspace.net.au> Date: Wed, 11 Jan 2006 01:52:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050914 Debian/1.7.11-1 MIME-Version: 1.0 Cc: gdb@sources.redhat.com Subject: Re: Core dumps References: <20060111014313.64887.qmail@web52011.mail.yahoo.com> In-Reply-To: <20060111014313.64887.qmail@web52011.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00083.txt.bz2 Larry Martell wrote: > --- Russell Shaw wrote: > >>What's the best way to force a core-dump from my own >>code? >>(I couldn't find much on the net) > > Doesn't a SIGABRT (kill -6) force a core dump? I put this in my own code, but it still doesn't make a core file: printf("Aborting...\n"); raise(6); I'm using debian-sid on a PC.