From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28138 invoked by alias); 30 Dec 2006 20:50:45 -0000 Received: (qmail 28130 invoked by uid 22791); 30 Dec 2006 20:50:44 -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:50:37 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H0lA0-0006ow-Sk; Sat, 30 Dec 2006 15:50:32 -0500 Date: Sat, 30 Dec 2006 20:50:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: Nick Roberts , gdb-patches@sources.redhat.com Subject: Re: variable objects and registers Message-ID: <20061230205032.GE25539@nevyn.them.org> Mail-Followup-To: Vladimir Prus , Nick Roberts , gdb-patches@sources.redhat.com References: <17782.41205.881283.845357@kahikatea.snap.net.nz> <17801.58248.297377.752117@kahikatea.snap.net.nz> <20061230202601.GA25539@nevyn.them.org> <200612302340.22697.ghost@cs.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612302340.22697.ghost@cs.msu.su> 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/msg00374.txt.bz2 On Sat, Dec 30, 2006 at 11:40:22PM +0300, Vladimir Prus wrote: > I kinda assumed we'd use 'struct block *' everywhere. We'd need to be > able to check if a PC is inside a block and for that we'd need the > comparison with block start and end addresses. Or there's some other > way to check if PC is in block? I meant that we shouldn't have the front end specify blocks based on their start/end addresses. If we want the front end to be able to specify blocks, we can give them UIDs. Yes, BLOCK_START and BLOCK_END are currently the right way to check if an address is in a block. I posted a patch a while back that added a predicate function to check, in case the block had more than one range of instructions. I never finished that patch - my goal for my own GDB development over the next year is to finish all the stuff I've posted as prototypes and then never come back to! -- Daniel Jacobowitz CodeSourcery