public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Sterling Augustine <saugustine@google.com>
To: gdb@sourceware.org
Subject: Differences between Gold-produced gdb-index and GDB-produced gdb-index
Date: Wed, 05 Oct 2011 19:07:00 -0000	[thread overview]
Message-ID: <CAEG7qUykGLNyTpkHv9UvaX4jQWH1W2paj9qtWO6iR+Xy1MOaNA@mail.gmail.com> (raw)

[Resend now that tromey is back.]

Hi All,

gdb_index handles enumerator names inconsistently. It includes the
enum's name as part of the enumerator name, but only when it is
declared inside a namespace. When outside of a namespace, it leaves
the enumerator name out:

enum A { A_A };
enum A a = A_A;

namespace foo
{
enum B { B_B };
enum B b = B_B;
};

int main() {return 0;}

For this testcase, gdb index will include (among others):

A_A
foo::B::B_B

That seems wrong to me. Which is right? FWIW, Gold includes the enum
name in both cases.

Sterling

             reply	other threads:[~2011-10-05 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 19:07 Sterling Augustine [this message]
2011-10-05 20:29 ` Tom Tromey

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=CAEG7qUykGLNyTpkHv9UvaX4jQWH1W2paj9qtWO6iR+Xy1MOaNA@mail.gmail.com \
    --to=saugustine@google.com \
    --cc=gdb@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).