From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4478 invoked by alias); 15 Apr 2005 09:20:35 -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 4386 invoked from network); 15 Apr 2005 09:20:29 -0000 Received: from unknown (HELO pluton.ispras.ru) (83.149.199.253) by sourceware.org with SMTP; 15 Apr 2005 09:20:29 -0000 Received: (qmail 60209 invoked from network); 15 Apr 2005 09:13:18 -0000 Received: from unknown (HELO truba.ispras.ru) (83.149.198.41) by pluton.ispras.ru with SMTP; 15 Apr 2005 09:13:18 -0000 Received: from truba.ispras.ru (root@localhost) by truba.ispras.ru (8.13.1/8.13.1) with SMTP id j3F9BLwe004508 for ; Fri, 15 Apr 2005 13:11:21 +0400 Received: from ispserv.ispras.ru (ispserv [83.149.198.72]) by truba.ispras.ru (8.13.1/8.13.1) with ESMTP id j3F9BLwp004498; Fri, 15 Apr 2005 13:11:21 +0400 Received: from kite.ispras.ru (kite.ispras.ru [83.149.198.52]) by ispserv.ispras.ru (8.12.8/8.12.8) with ESMTP id j3F9BfDA010061; Fri, 15 Apr 2005 13:11:41 +0400 Date: Fri, 15 Apr 2005 09:20:00 -0000 From: Konstantin Karganov Organization: ISP RAS Message-ID: <238614216.20050415132437@ispras.ru> To: JS CC: gdb@sources.redhat.com Subject: Re: Still cannot print variable In-reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spamtest-Info: Pass through X-SW-Source: 2005-04/txt/msg00089.txt.bz2 Hello JS, > I run "gdb test" followed by "print d" and then I get this error: > No symbol "d" in current context. > Why is it not possible to see the contents of "d" when debugging? Because you are not yet debugging! As described above, you started the debugger but not started the program being debugged. Try this: gdb test break main // to stop your program run run print d -- Best regards, Konstantin