From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22110 invoked by alias); 9 Oct 2002 09:57:05 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22102 invoked from network); 9 Oct 2002 09:57:03 -0000 Received: from unknown (HELO gaea.projecticarus.com) (195.10.228.71) by sources.redhat.com with SMTP; 9 Oct 2002 09:57:03 -0000 Received: from walrond.org (projecti.gemsoft.co.uk [195.10.224.46]) by gaea.projecticarus.com (8.11.6/8.11.6) with ESMTP id g999uY928764; Wed, 9 Oct 2002 10:56:34 +0100 Message-ID: <3DA3FD4C.7010304@walrond.org> Date: Wed, 09 Oct 2002 02:57:00 -0000 From: Andrew Walrond User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020831 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Prashant Deva CC: gdb Subject: Re: How to view value of variable in namespaces? References: <000b01c26f79$1d456bd0$39698aca@homecomp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00083.txt.bz2 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. > > >