From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3373 invoked by alias); 5 Feb 2008 19:42:58 -0000 Received: (qmail 3365 invoked by uid 22791); 5 Feb 2008 19:42:57 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Feb 2008 19:42:35 +0000 Received: by nf-out-0910.google.com with SMTP id b11so596979nfh.48 for ; Tue, 05 Feb 2008 11:42:32 -0800 (PST) Received: by 10.82.116.15 with SMTP id o15mr16177869buc.3.1202240552295; Tue, 05 Feb 2008 11:42:32 -0800 (PST) Received: by 10.82.165.12 with HTTP; Tue, 5 Feb 2008 11:42:32 -0800 (PST) Message-ID: <8f2776cb0802051142s6ab14bs80f91835da26f4e8@mail.gmail.com> Date: Tue, 05 Feb 2008 19:42:00 -0000 From: "Jim Blandy" To: "Eli Zaretskii" Subject: Re: value of local variable stored in register Cc: "Neeraj kushwaha" , gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 27339c3096dc66e9 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: 2008-02/txt/msg00032.txt.bz2 On Feb 4, 2008 12:31 PM, Eli Zaretskii wrote: > (gdb) info address c > > This will show where the variable c is stored. If it says it's in a > register, print the value of that register. The output of 'info address' isn't very helpful if c has a non-trivial DWARF location expression. I've been intending to fix this for quite some time now, but have never gotten around to it. :(