From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17313 invoked by alias); 9 Oct 2002 09:50:06 -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 17302 invoked from network); 9 Oct 2002 09:50:04 -0000 Received: from unknown (HELO mail.onlysmart.com) (202.138.104.4) by sources.redhat.com with SMTP; 9 Oct 2002 09:50:04 -0000 Received: from homecomp ([202.138.105.57]) by mail.onlysmart.com (8.10.1/8.10.1) with SMTP id g999osn31696 for ; Wed, 9 Oct 2002 15:20:58 +0530 Message-ID: <000b01c26f79$1d456bd0$39698aca@homecomp> From: "Prashant Deva" To: "gdb" Subject: How to view value of variable in namespaces? Date: Wed, 09 Oct 2002 02:50:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-SW-Source: 2002-10/txt/msg00082.txt.bz2 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.