From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8938 invoked by alias); 17 Dec 2002 21:20:34 -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 8826 invoked from network); 17 Dec 2002 21:20:23 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by 209.249.29.67 with SMTP; 17 Dec 2002 21:20:23 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gBHKs3g03257 for ; Tue, 17 Dec 2002 15:54:03 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gBHLKB226103; Tue, 17 Dec 2002 16:20:11 -0500 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gBHLKAL18845; Tue, 17 Dec 2002 16:20:11 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id C520EFF79; Tue, 17 Dec 2002 16:24:40 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15871.38424.617278.645505@localhost.redhat.com> Date: Tue, 17 Dec 2002 13:20:00 -0000 To: Benjamin Kosnik Cc: gcc-bugs@gcc.gnu.org, gdb@sources.redhat.com Subject: Re: -feliminate-dwarf2-dups unusable? In-Reply-To: <200212172107.gBHL7ax07371@fillmore.constant.com> References: <200212172107.gBHL7ax07371@fillmore.constant.com> X-SW-Source: 2002-12/txt/msg00259.txt.bz2 Benjamin Kosnik writes: > > I've been experimenting with -gdwarf-2 -feliminate-dwarf2-dups in libstdc++. > This combination of flags reduces the shared binary by 400k. > > -g -O2 > -rwxrwxr-x 1 bkoz bkoz 4.0M libstdc++.so.5.0.2* > > -gdwarf-2 -feliminate-dwarf2-dups -O2 > -rwxrwxr-x 1 bkoz bkoz 3.6M libstdc++.so.5.0.2* > > The build and testsuite complete without incident, but then when I try to > debug, I get: > > (gdb) file a.out > Reading symbols from a.out...DW_FORM_strp pointing outside of .debug_str section > > This is with mainline gdb, and the dcarlton branch, with top-of-tree > gcc, on x86/linux. > > Any ideas? > > -benjamin I think we are not doing this yet. There was some initial work done by Jim Blandy, but I am not sure where that is at right now. Read the thread at: http://sources.redhat.com/ml/gdb/2002-11/msg00040.html Elena