This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: namespaces and gdb


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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]