From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1218 invoked by alias); 6 Mar 2008 16:34:19 -0000 Received: (qmail 1208 invoked by uid 22791); 6 Mar 2008 16:34:18 -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:33:59 +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 LAA13072; Thu, 6 Mar 2008 11:16:04 -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 LAA02144; Thu, 6 Mar 2008 11:33:55 -0500 Message-ID: <47D01CF3.9010800@qnx.com> Date: Thu, 06 Mar 2008 16:34:00 -0000 From: Aleksandar Ristovski User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sourceware.org Subject: Re: [RFC] Skipping final cleanups in quit_target References: <47D0198C.9080104@qnx.com> <20080306163038.GB555@caradoc.them.org> In-Reply-To: <20080306163038.GB555@caradoc.them.org> 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/msg00070.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Mar 06, 2008 at 11:19:24AM -0500, Aleksandar Ristovski wrote: >> 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. > > Could you check which cleanups run, and which of them take so long? I believe it is cleaning up the symbols and stuff like that (but i have to double check to be sure). > Do they deal with letting go of the target system? > No, that is being done explicitly by calling target_kill/target_detach and target_close in quit_target.