From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22858 invoked by alias); 21 Jul 2004 22:17: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 22840 invoked from network); 21 Jul 2004 22:17:50 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 21 Jul 2004 22:17:50 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6LMHne3019056 for ; Wed, 21 Jul 2004 18:17:50 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6LMHna18003; Wed, 21 Jul 2004 18:17:49 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 444562B9D; Wed, 21 Jul 2004 18:17:54 -0400 (EDT) Message-ID: <40FEEB92.5020508@gnu.org> Date: Thu, 22 Jul 2004 01:00:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Paul Koning Cc: gdb@sources.redhat.com Subject: Re: maint check-symtabs failures -- now what? References: <16638.53519.120891.159800@gargle.gargle.HOWL> In-Reply-To: <16638.53519.120891.159800@gargle.gargle.HOWL> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00274.txt.bz2 > I'm chasing an elusive problem in GDB 6.1 (slightly modified, but I > don't think that's the issue here). The symptom is that one person's > kernels (NetBSD plus a pile of stuff -- big file) generate these > errors: > > (gdb) p main > $1 = {} 0x804372d0warning: (Internal error: pc 0x804372d1 in read in psymtab, but not in symtab.) > >
- look over the hopefully still fixed symtab/1519 for clues - check that the program only contains one type of debug info (.stabs) Andrew > Some functions suffer from this, some don't. The compiler is GCC > 3.0.1 for MIPS, with stabs. > > What's odd is that most of us don't see this, but one person sees it a > lot. > > I tried "maint check-symtabs". I figured that might help, but the > trouble is that it spits out vast quantites of error messages. Many > of them seem to have to do with type names. (The same command, > applied to a program built with GCC 3.3.3, dwarf-2, also produces > piles of errors -- but those seem to be ONLY for c++ mangled names.) > > I've looked at the symtab stuff in gdb but found it rather opaque, > with three different "symbol tables" that seem to contain 3 different > sets of stuff. > > So... > > a. Where do I look for this? > b. Would using dwarf-2 be expected to help? > c. Would a newer GDB be expected to help? > > paul > >