From: "Prashant Deva" <fulcrum1@onlysmart.com>
To: "gdb" <gdb@sources.redhat.com>
Subject: How to view value of variable in namespaces?
Date: Wed, 09 Oct 2002 02:50:00 -0000 [thread overview]
Message-ID: <000b01c26f79$1d456bd0$39698aca@homecomp> (raw)
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.
next reply other threads:[~2002-10-09 9:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 2:50 Prashant Deva [this message]
2002-10-09 2:57 ` Andrew Walrond
2002-10-09 5:52 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000b01c26f79$1d456bd0$39698aca@homecomp' \
--to=fulcrum1@onlysmart.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox