From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2265 invoked by alias); 6 Mar 2008 16:34:36 -0000 Received: (qmail 2156 invoked by uid 22791); 6 Mar 2008 16:34:33 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Mar 2008 16:34:06 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id 6A43E18701C; Thu, 6 Mar 2008 17:39:55 +0100 (CET) From: "Pierre Muller" To: "'Aleksandar Ristovski'" , References: <47D0198C.9080104@qnx.com> In-Reply-To: <47D0198C.9080104@qnx.com> Subject: RE: [RFC] Skipping final cleanups in quit_target Date: Thu, 06 Mar 2008 16:40:00 -0000 Message-ID: <000001c87fa7$d40c48e0$7c24daa0$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00071.txt.bz2 This should at least be configurable because it is good practice to have program that do cleanups... An example is that you might want to check if gdb is leaking memory, and you can do that by simply looking at heap allocations remaining at exit. Such tests will be harder with your suggestions, which is the reason why I would suggest to make this a configurable option. Pierre Muller > -----Original Message----- > From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On > Behalf Of Aleksandar Ristovski > Sent: Thursday, March 06, 2008 5:19 PM > To: gdb@sourceware.org > Subject: [RFC] Skipping final cleanups in quit_target > > Hello, > > Does anyone see a problem in skipping "do_final_cleanups > (ALL_CLEANUPS)" in > top.c (quit_target)? > > quit_target is called just before we exit gdb. > > I have a case where shutdown takes approx. 40sec. With skipping the > cleanups, > time is significantly shorter. > > Any thoughts? > > Thank you, > > Aleksandar Ristovski > QNX Software Systems