Differences between Gold-produced gdb-index and GDB-produced gdb-index
Sterling Augustine
saugustine@google.com
Wed Oct 5 19:07:00 GMT 2011
[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
More information about the Gdb
mailing list