From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17238 invoked by alias); 4 Oct 2004 23:25:55 -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 17219 invoked from network); 4 Oct 2004 23:25:54 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 4 Oct 2004 23:25:54 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CEcDJ-0004K3-MF; Mon, 04 Oct 2004 19:25:53 -0400 Date: Tue, 05 Oct 2004 05:24:00 -0000 From: Daniel Jacobowitz To: Nick Savoiu Cc: gdb@sources.redhat.com Subject: Re: Debugging a large program Message-ID: <20041004232553.GA16539@nevyn.them.org> Mail-Followup-To: Nick Savoiu , gdb@sources.redhat.com References: <044c01c4aa56$e5f7fb00$5a02a8c0@rio> <20041004211514.GA16453@nevyn.them.org> <20041004221420.GA2937@nevyn.them.org> <04cb01c4aa68$e0a13b00$5a02a8c0@rio> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04cb01c4aa68$e0a13b00$5a02a8c0@rio> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00069.txt.bz2 On Mon, Oct 04, 2004 at 04:21:28PM -0700, Nick Savoiu wrote: > ----- Original Message ----- > From: "Daniel Jacobowitz" > To: "Nick Savoiu" ; > Sent: Monday, October 04, 2004 3:14 PM > Subject: Re: Debugging a large program > > > > 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. > > I see. If one of the .so files is not actually used, can I somehow prevent > GDB from loading even its partial symbols? How much memory do partial > symbols use? Partial symbols are most or all of that memory. Try "set auto-solib-add 0", followed by "sharedlibrary REGEXP-YOU-WANT-LOADED". -- Daniel Jacobowitz