Ulrich Lauther wrote:

> I use g++ 4.1.0 and gdb 6.4.0, compile with -g and no optimization
> flags. Often, I get
> No symbol "foo" in current context.
> when foo is definitely in the scope.
> 
> Is this a common problem? Any workaround?

Perhaps a name mangling problem? Try to fully qualify the symbol and put
single quotes around it.

break 'Util::Tree::rotateleft(Util::Tree::Node*)'

gdb cannot easily respect all kinds of scopes C++ offers or it would
have to parse the source code.

I have switched from gdb 6.3 to 6.5, so maybe I had no chance to notice
a possible 6.4 bug. Perhaps you can try 6.5. And, BTW there is
gcc-4.1.1.

Bernd Strieder

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to