From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32491 invoked by alias); 30 Mar 2005 09:19:49 -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 32412 invoked from network); 30 Mar 2005 09:19:41 -0000 Received: from unknown (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org with SMTP; 30 Mar 2005 09:19:41 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DGZKu-0007pi-Is for gdb@sources.redhat.com; Wed, 30 Mar 2005 11:18:04 +0200 Received: from 130.225.245.182 ([130.225.245.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2005 11:18:04 +0200 Received: from fedevaps by 130.225.245.182 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2005 11:18:04 +0200 To: gdb@sources.redhat.com From: JS Subject: Print variable with gdb?? Date: Wed, 30 Mar 2005 09:19:00 -0000 Message-ID: Reply-To: fedevaps@yahoo.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 130.225.245.182 User-Agent: KNode/0.7.7 X-SW-Source: 2005-03/txt/msg00297.txt.bz2 I have: int p = 5; when I debug my code I would like to get a print of p's value therefore I start gdb and type: print p but then I get an error that the variable does not exists! Hope someone can help! JS