This is the mail archive of the archer@sourceware.org mailing list for the Archer project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Mon, Aug 25, 2008 at 11:50:14AM -0400, Sami Wagiaalla wrote:The name in GDB's symbol table will be "A::a".Is this because the linkage_name is used ?.. I am trying to not depend on linkage_name. There are situations where A::a is visible as just a, or if it was enclosed in another namespace B it would be B::A::a.
Yes, this is because linkage names are used in the symbol table. As I said last week (the week before?) I have patches to avoid relying on DW_AT_MIPS_linkage_name; they also happen to work around the GCC bug that causes namespace.exp failures. I hope I can post them tonight unless they end up depending on something in our internal tree.
But after the patch we still use it if it's available and still store
symbols with fully qualified names;
we just build up the names ourselves instead of by the demangler.
namespace A{ namespace B{ int ab; }
void func1{ B::ab; } }
void func2{ A::B::ab; }
I agree that doing it block-wise would be superior.
Thanks Sami
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |