From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12487 invoked by alias); 15 Sep 2011 06:30:48 -0000 Received: (qmail 12476 invoked by uid 22791); 15 Sep 2011 06:30:46 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_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; Thu, 15 Sep 2011 06:30:29 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8F6UQJG025263 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Sep 2011 02:30:26 -0400 Received: from host1.jankratochvil.net (ovpn-116-38.ams2.redhat.com [10.36.116.38]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8F6UNvU004686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Sep 2011 02:30:25 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p8F6UMLw018418; Thu, 15 Sep 2011 08:30:22 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p8F6UKLZ018391; Thu, 15 Sep 2011 08:30:20 +0200 Date: Thu, 15 Sep 2011 08:18:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [gdbserver, doc] add command line option to force core dump on fatal errors Message-ID: <20110915063020.GA18166@host1.jankratochvil.net> References: <201109141639.07804.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201109141639.07804.pedro@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-09/txt/msg00262.txt.bz2 On Wed, 14 Sep 2011 17:39:07 +0200, Pedro Alves wrote: > gdbserver does `exit(1)' on fatal errors, instead of aborting, > because we don't normally want embedded/deployed targets to end > up filled with core files if gdbserver happens to trip on some bug. > > However, when running the testsuite (and other situations) against > gdbserver, it's quite useful to have it dump core. I would make it more simple to abort always, there is already `ulimit -c' to control whether one wants a core file or not. > (yes, I know we should try to increase the core soft limit like > gdb does before calling abort. I'm leaving that to a follow > up, possibly moving dump_core to common/). The soft limit bump could be rather controlled by `--internal-error-corefile'. gdbserver is different from gdb in that it is not interactive. Thanks, Jan