From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25045 invoked by alias); 16 Dec 2002 19:41:17 -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 25038 invoked from network); 16 Dec 2002 19:41:16 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by sources.redhat.com with SMTP; 16 Dec 2002 19:41:16 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id gBGJfEU11670; Mon, 16 Dec 2002 11:41:14 -0800 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Paul Koning Cc: gdb@sources.redhat.com Subject: Re: psymtab/symtab error References: <15828.14028.345000.202128@gargle.gargle.HOWL> From: David Carlton Date: Mon, 16 Dec 2002 11:41:00 -0000 In-Reply-To: <15828.14028.345000.202128@gargle.gargle.HOWL> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00220.txt.bz2 On Thu, 14 Nov 2002 18:50:36 -0500, Paul Koning said: > I've been wading all over the guts of gdb for most of today, trying to > track down the cause of this message: > (gdb) info addr CFreeList::m_base > Internal: global symbol `_ZN9CFreeListI7CVolumeE6m_baseE' found in iSCSIInit.cpp psymtab but not in symtab. > _ZN9CFreeListI7CVolumeE6m_baseE may be an inlined function, or may be a template function > (if a template, try specifying an instantiation: _ZN9CFreeListI7CVolumeE6m_baseE). > (gdb) info addr CFreeList::m_base > Symbol "_ZN9CFreeListI7CVolumeE6m_baseE" is static storage at address 0x4000dcf4. > (gdb) > I get this simply by invoking gdb and loading the symbol table of the > image in question (a large RTOS application). > I dove deep into the guts of symbol table processing without getting > particularly enlightened. As a guess, perhaps the problem is that > this symbol is entered into the symtab in its friendly form? I was reading through old saved emails and noticed this; what debug format are you using? Because I noticed a few weeks ago that the DWARF 2 reader puts variables into the psymtab in their mangled form rather than their demangled form (the latter is what it should do); for various reasons, I don't expect that to normally cause problems, but you might have run into a situation where it does matter. Do you happen to have a small test case for this? It would be great if I could reproduce the problem, so I could see if my suspicions are right or if it's something else unrelated. Also, if you could file a PR for it, that would be great. David Carlton carlton@math.stanford.edu