Hi,
Post by James CownieSince GCC 3.x (through 3.3.2) doesn't emit _any_ DWARF debug information
about namespaces; the only comment about namespaces in dwarf2out.c is
/* Ignore namespaces for the moment. */
if (containing_scope && TREE_CODE (containing_scope) == NAMESPACE_DECL)
containing_scope = NULL_TREE;
I'm at a loss to know how _any_ debugger can possibly handle
namespaces properly with the output from that compiler.
If namespaces are being handled properly I guess you must be using
a different compiler.
Did you try to contact the gcc folks about this problem? If not, could
you please collect all the necessary details (thus, I can post this
problem to the gcc development people myself in case you don't want to)?
I'm quite anoyed about the lack of namespacing in gdb for quite a while
as I'm writing a lot of C++ code and would like to see it working;
currently, debugging C++ code is quite painful, but I was never aware
where the problem really lies. Aparently, g++ itself is part of the
problem (at least, if I understand your statement correctly).
So long,
Thomas