From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17746 invoked by alias); 5 Feb 2008 20:35:39 -0000 Received: (qmail 17735 invoked by uid 22791); 5 Feb 2008 20:35:38 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Feb 2008 20:35:14 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-250-173.inter.net.il [83.130.250.173]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id KDD78239 (AUTH halo1); Tue, 5 Feb 2008 22:34:51 +0200 (IST) Date: Tue, 05 Feb 2008 20:35:00 -0000 Message-Id: From: Eli Zaretskii To: "Jim Blandy" CC: kushneeraj@gmail.com, gdb@sourceware.org In-reply-to: <8f2776cb0802051142s6ab14bs80f91835da26f4e8@mail.gmail.com> (jimb@red-bean.com) Subject: Re: value of local variable stored in register Reply-to: Eli Zaretskii References: <8f2776cb0802051142s6ab14bs80f91835da26f4e8@mail.gmail.com> 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/msg00034.txt.bz2 > Date: Tue, 5 Feb 2008 11:42:32 -0800 > From: "Jim Blandy" > Cc: "Neeraj kushwaha" , gdb@sourceware.org > > 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. Can you show an example? Also, is this problem relevant to the case in point (the OP presented a test program)?