This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: namespaces and gdb
- To: Alexander Zhuckov <zuav at int dot spb dot ru>
- Subject: Re: namespaces and gdb
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Wed, 28 Jun 2000 10:28:14 -0700 (PDT)
- cc: gdb at sourceware dot cygnus dot com
p 'Foo::version'
I'm trying to remember if i made it possible to just do p Foo::version, i
know i did it with templates.
If you don't want to have to quote it, try the latest CVS version of gdb,
and tell me if i fixed that (Bell Atlantic DSL is down right now, or else
i'd do a checkout myself).
On 28 Jun 2000, Alexander Zhuckov wrote:
> Hi!
>
> I use Linux, C++ and gdb 5.0.
> Suppose I have a simple program:
>
> namespace Foo {
>
> const char version[] = "0.1";
>
> }
>
> int main()
> {
> return 0;
> }
>
> How I can eximine a value of the Foo::vesrion varibale?
>
> --
> Alexander Zhuckov zuav@int.spb.ru 2:5030/518.50
>