This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: no symbol in current context problem
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
CodeSourcery