no symbol in current context problem

Daniel Jacobowitz
Mon Sep 15 17:00:00 GMT 2008

On Mon, Sep 15, 2008 at 11:54:51AM -0500, Peng Yu wrote:
> Hi,
> I have the following program. When I step in to test's constructor, I
> would be able to print the variable three. It says
> (gdb) n
> 7             T three = 3;
> (gdb) n
> 8             std::cout << three << std::endl;
> (gdb) p three
> No symbol "three" in current context.
> I know that this is a bug has been reported before. But I'm wondering
> if it is already fixed in the newest version of gdb.

I believe it's a bug in GCC, not in GDB - try searching the GCC bugzilla.

Daniel Jacobowitz

More information about the Gdb mailing list