From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24153 invoked by alias); 21 Aug 2003 18:46:19 -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 24116 invoked from network); 21 Aug 2003 18:46:19 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 21 Aug 2003 18:46:19 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E0DFF2B7F; Thu, 21 Aug 2003 14:46:05 -0400 (EDT) Message-ID: <3F45136D.9060308@redhat.com> Date: Thu, 21 Aug 2003 18:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa] ENUM BITFIELD, here it comes again References: <200308211742.h7LHgNJx028786@duracef.shout.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00371.txt.bz2 > + /* Rearranged: used ENUM_BITFIELD and rearranged field order in > + all the space critical structures (plus struct minimal_symbol). > + Memory usage dropped from 99360768 bytes to 90001408 bytes. > + I measured this with before-and-after tests of > + "HEAD-old-gdb -readnow HEAD-old-gdb" and > + "HEAD-new-gdb -readnow HEAD-old-gdb" on native i686-pc-linux-gnu, > + red hat linux 8, with LD_LIBRARY_PATH=/usr/lib/debug, > + typing "maint space 1" at the first command prompt. > + --chastain 2003-08-21 */ What effect does it have without -readnow but with say: $ gdb gdb (gdb) break internal_error (gdb) run (gdb) maint internal-error (gdb) backtrace which is kind of closer to the typical users: $ gdb foo (gdb) run Segmentation fault (gdb) bt (gdb) list (gdb) print pointer $1 = 0 (gdb)^D i.e., very few symbols are really loaded. Andrew