From: Daniel Jacobowitz <drow@mvista.com>
To: gdb <gdb@sources.redhat.com>
Subject: Re: How to view value of variable in namespaces?
Date: Wed, 09 Oct 2002 05:52:00 -0000 [thread overview]
Message-ID: <20021009125334.GA5724@nevyn.them.org> (raw)
In-Reply-To: <000b01c26f79$1d456bd0$39698aca@homecomp>
On Wed, Oct 09, 2002 at 03:18:54PM +0530, 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.
That's old, might want to try a newer one. But as Andrew said this is
a work in progress.
Also, try:
(gdb) print 'testSP::spert'
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2002-10-09 12:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 2:50 Prashant Deva
2002-10-09 2:57 ` Andrew Walrond
2002-10-09 5:52 ` Daniel Jacobowitz [this message]
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=20021009125334.GA5724@nevyn.them.org \
--to=drow@mvista.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