From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17055 invoked by alias); 2 Oct 2007 12:43:49 -0000 Received: (qmail 17044 invoked by uid 22791); 2 Oct 2007 12:43:48 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Oct 2007 12:43:45 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 1AED222D4F; Tue, 2 Oct 2007 14:43:42 +0200 (CEST) From: Andreas Schwab To: Bogdan Slusarczyk Cc: gdb@sourceware.org Subject: Re: how to find where specified variable is declared? References: <470233D9.1030207@op.pl> <20071002120716.GA13196@caradoc.them.org> <47023933.4020109@op.pl> X-Yow: Are you still an ALCOHOLIC? Date: Tue, 02 Oct 2007 12:43:00 -0000 In-Reply-To: <47023933.4020109@op.pl> (Bogdan Slusarczyk's message of "Tue\, 02 Oct 2007 14\:27\:31 +0200") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00016.txt.bz2 Bogdan Slusarczyk writes: >>> Does gdb have information about source file for specified variable (I >>> want to find where such variable is declared)?. >> >> Try "list varname"? > > It works only for function names :( Then the debugging information is incomplete. Without that gdb cannot do anything. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."