From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10318 invoked by alias); 15 Jan 2010 00:28:45 -0000 Received: (qmail 10310 invoked by uid 22791); 15 Jan 2010 00:28:45 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jan 2010 00:28:38 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0F0S9AF014276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 14 Jan 2010 19:28:09 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0F0S6MF002985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 Jan 2010 19:28:08 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id o0F0S6jX026550; Fri, 15 Jan 2010 01:28:06 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o0F0S5Wh026546; Fri, 15 Jan 2010 01:28:05 +0100 Date: Fri, 15 Jan 2010 00:28:00 -0000 From: Jan Kratochvil To: Eli Zaretskii Cc: Tristan Gingold , gdb-patches@sourceware.org Subject: Re: [patch] Do not disappoint on "Create a core file of GDB?" Message-ID: <20100115002805.GA26155@host0.dyn.jankratochvil.net> References: <20100111160241.GA12356@host0.dyn.jankratochvil.net> <83fx6c8ncd.fsf@gnu.org> <36BBE15B-5F48-48CD-ABE6-E0D39818EBB2@adacore.com> <836377867l.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <836377867l.fsf@gnu.org> User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00395.txt.bz2 On Tue, 12 Jan 2010 20:37:50 +0100, Eli Zaretskii wrote: > In case I wasn't clear, I was actually wondering how come we compile a > source file that's needed for reading and writing core files on a > system where core files aren't supported. We shouldn't compile it, > and this problem should not exist. This code is about invoking system default SIGABRT action which is usually to dump a core. Calling abort() is simple enough it IMO does not make sense to move it to some host/target-dependent file. You are probably suggesting that GDB could fork, attaching to its copy (in a new inferior) and invoke gcore on the copy. This would be a functionality enabled only for native targets (*-nat.c) so that it could dump core even on operating systems not supporting such operation. It would be a feature currently unsupported by GDB and out of the scope of this patch. Still the system core dumping would be preferred over this GDB-native dump as it is more safe for half-crashed GDB. Therefore such functionality would have limited audience. Regards, Jan