From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2016 invoked by alias); 26 Sep 2011 16:50:11 -0000 Received: (qmail 1999 invoked by uid 22791); 26 Sep 2011 16:50:07 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Sep 2011 16:49:51 +0000 Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p8QGnnuF018604 for ; Mon, 26 Sep 2011 09:49:50 -0700 Received: from yib17 (yib17.prod.google.com [10.243.65.81]) by hpaq11.eem.corp.google.com with ESMTP id p8QGmhfX028623 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 26 Sep 2011 09:49:48 -0700 Received: by yib17 with SMTP id 17so5850658yib.2 for ; Mon, 26 Sep 2011 09:49:48 -0700 (PDT) Received: by 10.100.205.1 with SMTP id c1mr6179725ang.46.1317055788018; Mon, 26 Sep 2011 09:49:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.205.1 with SMTP id c1mr6179719ang.46.1317055787877; Mon, 26 Sep 2011 09:49:47 -0700 (PDT) Received: by 10.101.11.20 with HTTP; Mon, 26 Sep 2011 09:49:47 -0700 (PDT) Date: Mon, 26 Sep 2011 16:50:00 -0000 Message-ID: Subject: Differences between gdb-index as generated by Gold and GDB itself From: Sterling Augustine To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00119.txt.bz2 Hi All, I have noticed an inconsistency with GDB index and the names of enumerated values. Consider this test case: enum A { A_A }; enum A a = A_A; namespace foo { enum B { B_B }; enum B b = B_B; }; int main() { return 0; } Examining the gdb-index--as produced by GDB--shows an inconsistency between enumerator names inside a namespace vs outside the namespace: foo::B::B_B vs B_B That is, the enumerator inside the namespace includes the enum name, but the enumerator outside the namespace doesn't include the enum name. Is this a bug in GDB? The index produced by gold does include the enumerator name, and is therefore inconsistent with GDB--I'm happy to fix one or the other, but I'm not sure which one is right. Sterling