From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5203 invoked by alias); 5 Apr 2006 13:23:51 -0000 Received: (qmail 5194 invoked by uid 22791); 5 Apr 2006 13:23:50 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 05 Apr 2006 13:23:48 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FR7z8-0007Z0-KA for gdb@sources.redhat.com; Wed, 05 Apr 2006 09:23:46 -0400 Date: Wed, 05 Apr 2006 13:23:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: show register assignment Message-ID: <20060405132346.GB28872@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20060405090421.GA12506@radix50.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060405090421.GA12506@radix50.net> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00035.txt.bz2 On Wed, Apr 05, 2006 at 11:04:21AM +0200, Baurzhan Ismagulov wrote: > Hello, > > I'm using the GNU toolchain to create binaries for the ARM architecture > (I build with -g -O2, debug info is presumably dwarf2). With "objdump -S > file.o", I'm able to see which source lines generate which code. The > Lauterbach debugger is also able to show which variable a register is > holding, like this: "msr cpsr_c, r4 ; cpsr_c, flags". Is there a way to > see this with gdb or objdump? Not readily, although you can see the location of a variable by using "info address". That's a neat idea. -- Daniel Jacobowitz CodeSourcery