From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24077 invoked by alias); 1 Jun 2003 20:29:45 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24012 invoked from network); 1 Jun 2003 20:29:44 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 1 Jun 2003 20:29:44 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19MZTB-0004UX-00; Sun, 01 Jun 2003 15:30:21 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19MZSV-0003NQ-00; Sun, 01 Jun 2003 16:29:39 -0400 Date: Sun, 01 Jun 2003 20:29:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: Andrew Cagney , gdb@sources.redhat.com Subject: Re: useful `info address'? Message-ID: <20030601202939.GA12865@nevyn.them.org> Mail-Followup-To: Mark Kettenis , Andrew Cagney , gdb@sources.redhat.com References: <3ED923FB.6090005@redhat.com> <86he7acepf.fsf@elgar.kettenis.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86he7acepf.fsf@elgar.kettenis.dyndns.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00010.txt.bz2 On Sun, Jun 01, 2003 at 11:46:52AM +0200, Mark Kettenis wrote: > Andrew Cagney writes: > > > Um, > > > > Having only just learn't of `info address', I'm finding that it isn't > > very useful. Sigh: > > > > (gdb) info address b > > Symbol "b" is a variable with complex or multiple locations (DWARF2). > > This is progress :-(. Abviously "info address" should try to evaluate > the location expression. Yes, precisely. The message was deemed more useful than incorrekt/incomplet information. Just need to hook in either a pretty-printer or location expression dumper. I'm waiting until after DW_OP_piece to do this, so that we'll be able to say something like: "b" is a variable with multiple locations: 4 bytes at 0x10002030 4 bytes in $r13 8 bytes in $f12 -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer