From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27505 invoked by alias); 17 Nov 2005 14:09:14 -0000 Received: (qmail 27494 invoked by uid 22791); 17 Nov 2005 14:09:11 -0000 Received: from h-68-164-203-246.nycmny83.covad.net (HELO dberlin.org) (68.164.203.246) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 14:09:11 +0000 Received: from [127.0.0.1] (HELO localhost) by dberlin.org (CommuniGate Pro SMTP 5.0.1) with ESMTP id 8317159; Thu, 17 Nov 2005 09:09:09 -0500 Subject: Re: Link-time optimzation From: Daniel Berlin To: law@redhat.com Cc: Mark Mitchell , Richard Henderson , gcc mailing list In-Reply-To: <1132198431.3152.5.camel@fuel98> References: <437BB214.1070306@codesourcery.com> <20051117011900.GA17847@redhat.com> <437BDC9E.3080608@codesourcery.com> <1132198431.3152.5.camel@fuel98> Content-Type: text/plain Date: Thu, 17 Nov 2005 14:09:00 -0000 Message-Id: <1132236551.9778.92.camel@dyn9002219071> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2005-11/txt/msg00769.txt.bz2 On Wed, 2005-11-16 at 20:33 -0700, Jeffrey A Law wrote: > > Our understanding was that the debugger actually uses the symbol table, > > in addition to the debugging information, in some cases. (This must be > > true when not running with -g, but I thought it was true in other cases > > as well.) It might be true for other tools, too. > I can't offhand recall if GDB actually uses the minimal symbols (the > symbol table) for anything if there are debug symbols available. It does, but only after trying the debug symbols first. I discovered this when deep hacking into the symbol code of GDB a while ago. Apparently, some people enjoy breakpointing symbols by using the fully mangled name, which appears (nowadays) mainly in the minsym table. > But > even if we prove GDB doesn't use those symbols, we should still > keep them -- other tools, or even other debuggers (Etnus?) might still > use the symbols from the symbol table. > > Jeff >