This is the mail archive of the 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]

Re: [patch by Michael Matz] Re: archer gdb and gcc 4.1 global namespaceDIE

Hi Richard,

Thanks for the bug and the patch.

This problem is due to the fact that in Archer we are using dwarf2_full_name instead of dwarf2_linkage_name.

I am trying your patch but it does not seem to have solved the problem for me. Are you testing against the Archer fedora branch ( archer-jankratochvil-fedora-merge ) ?


Jan Kratochvil wrote:
Hi Sami,

sending a followup with patch I got.

Regards, Jan


Support bogus global namespace emitted by g++ 4.1
Michael Matz <>
Wed, 13 May 2009 16:44:53 +0200 (CEST)
Jan Kratochvil <>

Jan Kratochvil <>
Richard Guenther <>


(it's my understanding that Richard already mentioned this, but anyway)
due to some old G++ emit an explicit namespace declaration for the global namespace for some decls. This is bogus and indeed confuses gdb (not the current CVS it seems, but the archer branch at least). Unfortunately we now have to deal with this in gdb as the bogus debug info is already out there.

So, here's a patch for that.  I saw two options:
(1) hacking determine_prefix to return "" when it was just about to
    return "::" for namespaces.
(2) not even linking that bogus namespace DIE into its children

It seems to me that option (2) is slightly more clear, so that's what I've chosen. It works with the simple testcases I have using global decls.

Let me know what you think.

Ciao, Michael.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]