From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9768 invoked by alias); 6 Mar 2008 16:45:59 -0000 Received: (qmail 9621 invoked by uid 22791); 6 Mar 2008 16:45:58 -0000 X-Spam-Check-By: sourceware.org Received: from qnxmail.qnx.com (HELO qnxmail.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Mar 2008 16:45:33 +0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.42.96.5]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id LAA13324; Thu, 6 Mar 2008 11:27:38 -0500 Received: from [10.42.100.129] (dhcp-100-129 [10.42.100.129]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id LAA29227; Thu, 6 Mar 2008 11:45:30 -0500 Message-ID: <47D01FAA.5020508@qnx.com> Date: Thu, 06 Mar 2008 16:51:00 -0000 From: Aleksandar Ristovski User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Pierre Muller CC: gdb@sourceware.org Subject: Re: [RFC] Skipping final cleanups in quit_target References: <47D0198C.9080104@qnx.com> <000001c87fa7$d40c48e0$7c24daa0$@u-strasbg.fr> In-Reply-To: <000001c87fa7$d40c48e0$7c24daa0$@u-strasbg.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00074.txt.bz2 Pierre Muller wrote: > 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. Yes, I am not against final cleanups in general, I am just looking for ways to cut down the time users perceive as useless waiting. > > 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 > > >