From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11039 invoked by alias); 4 Oct 2004 20:44:51 -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 11031 invoked from network); 4 Oct 2004 20:44:50 -0000 Received: from unknown (HELO borg.ics.uci.edu) (128.195.1.103) by sourceware.org with SMTP; 4 Oct 2004 20:44:50 -0000 Received: from rio (c-24-7-116-111.client.comcast.net [24.7.116.111]) by borg.ics.uci.edu (8.12.10/8.12.10) with SMTP id i94KinoN009795 for ; Mon, 4 Oct 2004 13:44:49 -0700 (PDT) Message-ID: <043c01c4aa53$01e419b0$5a02a8c0@rio> From: "Nick Savoiu" To: Subject: Debugging a large program Date: Mon, 04 Oct 2004 20:48:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00058.txt.bz2 Hi, I'm using GDB to debug a rather large program and I'm running into memory usage problems that slow down debugging considerably. Just invoking GDB on the executable (without issuing 'run') results in GDB using up 450MB of memory. I think that this is caused by GDB reading in all the symbol info. However, the code that I'm debugging uses but a small fraction of the code that's present in the program. Can I somehow tell GDB to only load the symbols it needs? Thanks, Nick