Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <mec@shout.net>
To: carlton@math.stanford.edu, pkoning@equallogic.com
Cc: gdb@sources.redhat.com
Subject: Re: psymtab/symtab error
Date: Mon, 16 Dec 2002 18:15:00 -0000	[thread overview]
Message-ID: <200212170215.gBH2FbD12856@duracef.shout.net> (raw)

Paul Koning wrote:

> I don't know.  I ran into this with gcc 3.0.1, NetBSD i386 host,
> NetBSD MIPS target.

Yikes.  gcc 3.0.4 had many bugs with C++ debugging information,
particularly with templates.

And the symbol `_ZN9CFreeListI7CVolumeE6m_baseE' demangles to
`CFreeList<CVolume>::m_base', which is definitely a template
symbol (probably a member, from the name).

I am assuming here that your gcc 3.0.1 on NetBSD MIPS will have
about the same symbol table code as my gcc 3.0.4 on native
i686-pc-linux-gnu.

I recommend that you upgrade to gcc 3.1 or gcc 3.1.1 or gcc 3.2 or
gcc 3.2.1.  gcc 3.2.1 would be the best but any of them are much better
than gcc 3.0.4.  Eschew the CVS versions of gcc, they are not measurably
better than gcc 3.2.1 at this time and in some ways they are worse.

If you can't upgrade gcc, you can try building your whole program
with "-gdwarf-2" and see if that helps.  If that doesn't help any,
building the whole program with "-gstabs+" and see if that helps.
-gdwarf-2 is the best debugging format for C++, and -gstabs+ is
second best.

I don't know a simple reliable way to tell which is the default
on your platform.  I usually compile a small test program with
"gcc -S foo.c" and then read the foo.s file and look for the
telltale dwarf-2 or stabs+ information.  But regardless of what
the default debug format is, you can try setting the debug format
explicitly.

Michael C


             reply	other threads:[~2002-12-17  2:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-16 18:15 Michael Elizabeth Chastain [this message]
2002-12-16 18:26 ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2002-11-14 14:50 Paul Koning
2002-11-14 21:49 ` Jim Blandy
2002-11-15  7:32   ` Paul Koning
2002-12-16 11:41 ` David Carlton
2002-12-16 17:00   ` Paul Koning
2002-12-16 17:05     ` Daniel Jacobowitz
2002-12-16 17:09     ` David Carlton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212170215.gBH2FbD12856@duracef.shout.net \
    --to=mec@shout.net \
    --cc=carlton@math.stanford.edu \
    --cc=gdb@sources.redhat.com \
    --cc=pkoning@equallogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox