From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20281 invoked by alias); 4 Feb 2008 20:32:15 -0000 Received: (qmail 20209 invoked by uid 22791); 4 Feb 2008 20:32:14 -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; Mon, 04 Feb 2008 20:31:55 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-229-116-252.inter.net.il [84.229.116.252]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id KCX24856 (AUTH halo1); Mon, 4 Feb 2008 22:31:08 +0200 (IST) Date: Mon, 04 Feb 2008 20:32:00 -0000 Message-Id: From: Eli Zaretskii To: "Neeraj kushwaha" CC: gdb@sourceware.org In-reply-to: (kushneeraj@gmail.com) Subject: Re: value of local variable stored in register Reply-to: Eli Zaretskii References: 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/msg00012.txt.bz2 > Date: Mon, 4 Feb 2008 10:23:26 +0530 > From: "Neeraj kushwaha" > > The value of local variable is shown as c = 11305136, but actual value is 20. > > How to get the correct value of variables which are stored in register. (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.