From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9948 invoked by alias); 23 Oct 2004 14:13:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9935 invoked from network); 23 Oct 2004 14:13:05 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 23 Oct 2004 14:13:05 -0000 Received: from zaretski ([80.230.152.122]) by legolas.inter.net.il (MOS 3.5.3-GR) with ESMTP id CXU50275 (AUTH halo1); Sat, 23 Oct 2004 16:13:01 +0200 (IST) Date: Sat, 23 Oct 2004 14:13:00 -0000 From: "Eli Zaretskii" To: gdb-patches@sources.redhat.com Message-ID: <01c4b909$Blat.v2.2.2$ea105680@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 Subject: [commit] A tip for using less memory for symtabs Reply-to: Eli Zaretskii X-SW-Source: 2004-10/txt/msg00378.txt.bz2 This issue came up in a past disucssion, so I've committed the attached patch ti give users a tip. 2004-10-23 Eli Zaretskii * gdb.texinfo (Files): Add a tip for decreasing memory used for symtabs from shared libraries. Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.218 diff -u -r1.218 gdb.texinfo --- gdb.texinfo 23 Oct 2004 13:52:37 -0000 1.218 +++ gdb.texinfo 23 Oct 2004 14:08:19 -0000 @@ -10453,6 +10453,16 @@ is @code{off}, symbols must be loaded manually, using the @code{sharedlibrary} command. The default value is @code{on}. +@cindex memory used for symbol tables +If your program uses lots of shared libraries with debug info that +takes large amounts of memory, you can decrease the @value{GDBN} +memory footprint by preventing it from automatically loading the +symbols from shared libraries. To that end, type @kbd{set +auto-solib-add off} before running the inferior, then load each +library whose debug symbols you do need with @kbd{sharedlibrary +@var{regexp}}, where @var{regexp} is a regular expresion that matches +the libraries whose symbols you want to be loaded. + @kindex show auto-solib-add @item show auto-solib-add Display the current autoloading mode.