From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17665 invoked by alias); 12 Sep 2008 16:51:50 -0000 Received: (qmail 17651 invoked by uid 22791); 12 Sep 2008 16:51:49 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 Sep 2008 16:51:14 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m8CGoAGw028839; Fri, 12 Sep 2008 12:50:31 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8CGnx8q003494; Fri, 12 Sep 2008 12:49:59 -0400 Received: from opsy.redhat.com (vpn-10-13.bos.redhat.com [10.16.10.13]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m8CGnvjG010389; Fri, 12 Sep 2008 12:49:58 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id CACA5C8818F; Fri, 12 Sep 2008 10:50:01 -0600 (MDT) To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFA/commit/dwarf] Create partial symbols for nested subprograms References: <20080910201959.GC10133@adacore.com> <20080910203437.GA26162@caradoc.them.org> <20080911175422.GS12222@adacore.com> <20080911183730.GA17809@caradoc.them.org> <20080912041800.GA3714@adacore.com> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Fri, 12 Sep 2008 16:51:00 -0000 In-Reply-To: <20080912041800.GA3714@adacore.com> (Joel Brobecker's message of "Thu\, 11 Sep 2008 21\:18\:00 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2008-09/txt/msg00273.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: Tom> FWIW I don't think Joel's patch will negatively affect my current Tom> approach. Joel> Just curious, I think I either forgot a previous discussion or missed Joel> it entirely. It is on the archer list. Joel> What approach are you going to take? My patch defers reading partial symbol tables until they are needed. This is done on a per-objfile basis, so some user requests can be satisfied without reading all the psymbols for the inferior. FWIW, initial results are pretty good. Attach time drops from 1 minute to 20 seconds, and memory use after attach drops 35% (I expected more -- I'm curious to know where all the memory goes). Operations like "bt" still seem responsive. There are still a couple FIXMEs to sort out. And, I am not completely sure that I've found all the spots where a call to require_partial_symbols is needed. Tom