help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb fails to see symbol


From: Bernd Strieder
Subject: Re: gdb fails to see symbol
Date: Wed, 12 Jul 2006 17:13:43 +0200
User-agent: KNode/0.10.2

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]