This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to view value of variable in namespaces?
- From: Andrew Walrond <andrew at walrond dot org>
- To: Prashant Deva <fulcrum1 at onlysmart dot com>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Wed, 09 Oct 2002 10:56:28 +0100
- Subject: Re: How to view value of variable in namespaces?
- References: <000b01c26f79$1d456bd0$39698aca@homecomp>
I think 'with great difficulty' about sums it up. If you follow the
conversations here, you'll see there is some serious work going on at
the moment to bring namespace understanding to gdb. I for one am
following developments with great anticipation....
Prashant Deva wrote:
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.