From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21531 invoked by alias); 30 Dec 2006 20:26:14 -0000 Received: (qmail 21515 invoked by uid 22791); 30 Dec 2006 20:26:12 -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; Sat, 30 Dec 2006 20:26:07 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H0kmH-0006ea-Gh; Sat, 30 Dec 2006 15:26:01 -0500 Date: Sat, 30 Dec 2006 20:26:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Vladimir Prus , gdb-patches@sources.redhat.com Subject: Re: variable objects and registers Message-ID: <20061230202601.GA25539@nevyn.them.org> Mail-Followup-To: Nick Roberts , Vladimir Prus , gdb-patches@sources.redhat.com References: <17782.41205.881283.845357@kahikatea.snap.net.nz> <17800.24415.300779.516967@kahikatea.snap.net.nz> <17801.40268.835284.224413@kahikatea.snap.net.nz> <17801.58248.297377.752117@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17801.58248.297377.752117@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00369.txt.bz2 On Thu, Dec 21, 2006 at 02:29:44PM +1300, Nick Roberts wrote: > I see now that Insight has two commands: > > /* This implements the tcl command gdb_get_blocks > * > * Returns the start and end addresses for all blocks in > * the selected frame. > /* This implements the tcl command gdb_block_vars. > * > * Returns all variables valid in the specified block. > gdb_block_vars only gets called if gdb_get_blocks finds a new block which > then finds any variabes local to it. That way new variable objects can be > added (and old ones deleted if a block has disappeared) while keeping > the variable objects which are still in scope. I think we should implement > these functions in MI (perhaps Apple already have). Just a note: whatever approach we end up with for this problem, let's not use start and end addresses to identify the blocks. In modern compilers a block is not a contiguous range of PCs; they can overlap. -- Daniel Jacobowitz CodeSourcery