This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
How to view value of variable in namespaces?
- From: "Prashant Deva" <fulcrum1 at onlysmart dot com>
- To: "gdb" <gdb at sources dot redhat dot com>
- Date: Wed, 9 Oct 2002 15:18:54 +0530
- Subject: How to view value of variable in namespaces?
I have code like this-
namespace testSP
{
int spert;
}
but if i try to do -
'print testSP::spert'
in gdb, it tells me 'no symbol testSPin current context'.
I also tried putting 'using namespace testSP' in my code but the same error
continued to come.
So how am i supposed to view the value of variables inside namespaces?
P.S.- I am using gdb v 5.1.1.