From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21477 invoked by alias); 4 Oct 2004 22:14:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21468 invoked from network); 4 Oct 2004 22:14:21 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 4 Oct 2004 22:14:21 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CEb64-0000oI-RX; Mon, 04 Oct 2004 18:14:20 -0400 Date: Mon, 04 Oct 2004 23:21:00 -0000 From: Daniel Jacobowitz To: Nick Savoiu , gdb@sources.redhat.com Subject: Re: Debugging a large program Message-ID: <20041004221420.GA2937@nevyn.them.org> Mail-Followup-To: Nick Savoiu , gdb@sources.redhat.com References: <044c01c4aa56$e5f7fb00$5a02a8c0@rio> <20041004211514.GA16453@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041004211514.GA16453@nevyn.them.org> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00067.txt.bz2 On Mon, Oct 04, 2004 at 05:15:14PM -0400, Daniel Jacobowitz wrote: > > BTW, 405MB was for gdb running to main() not just what I said above :) There > > probably are a few global variables but I don't think they should take up > > too much space. > > That requires loading symbol information for all the shared libraries, > which is probably what's taking all the space. 400MB+ is a bit > unusual, but I don't know how big your libraries are. Your libraries contain 288MB of DWARF2 debug information. We're winding up with less than twice that in memory usage for reading in partial symbols. It probably could be reduced somewhat - say, 30%. But some of this data we've just got to hold in memory. -- Daniel Jacobowitz